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:
Matthias Koefferlein 2025-06-26 20:54:16 +02:00
parent f3cc7cadc0
commit 5c7ac018a8
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}