mirror of https://github.com/KLayout/klayout.git
Fixed #71 (target cell argument is required)
This commit is contained in:
parent
5d59b890d3
commit
4f3b205d93
|
|
@ -4694,11 +4694,20 @@ CODE
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
output = @output_layout || @def_layout
|
if @output_layout
|
||||||
output || raise("No output layout specified")
|
output = @output_layout
|
||||||
|
if @output_cell
|
||||||
output_cell = @output_cell || @def_cell
|
output_cell = @output_cell
|
||||||
output_cell || raise("No output cell specified")
|
elsif @def_cell
|
||||||
|
output_cell = @output_layout.cell(@def_cell.name) || @output_layout.create_cell(@def_cell.name)
|
||||||
|
end
|
||||||
|
output_cell || raise("No output cell specified (see 'target' instruction)")
|
||||||
|
else
|
||||||
|
output = @def_layout
|
||||||
|
output || raise("No output layout specified")
|
||||||
|
output_cell = @output_cell || @def_cell
|
||||||
|
output_cell || raise("No output cell specified")
|
||||||
|
end
|
||||||
|
|
||||||
info = nil
|
info = nil
|
||||||
if args.size == 1
|
if args.size == 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue