mirror of https://github.com/KLayout/klayout.git
Not asking for copy mode for leaf cells isn't a bad idea in general, but it creates confusing behavior when pasting instances into a different layout where the target cell does not exist
This commit is contained in:
parent
f3cc7cadc0
commit
5c7ac018a8
|
|
@ -467,7 +467,7 @@ Service::copy_selected ()
|
|||
for (EditableSelectionIterator r = begin_selection (); ! r.at_end () && ! need_to_ask_for_copy_mode; ++r) {
|
||||
if (r->is_cell_inst ()) {
|
||||
const db::Cell &cell = view ()->cellview (r->cv_index ())->layout ().cell (r->back ().inst_ptr.cell_index ());
|
||||
if (! cell.is_proxy () && ! cell.is_leaf ()) {
|
||||
if (! cell.is_proxy ()) {
|
||||
need_to_ask_for_copy_mode = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue