From 5c7ac018a84621f94a05da0833fff96169cdf13c Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Thu, 26 Jun 2025 20:54:16 +0200 Subject: [PATCH] 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 --- src/edt/edt/edtService.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/edt/edt/edtService.cc b/src/edt/edt/edtService.cc index aeb4223d1..d6ff82a2d 100644 --- a/src/edt/edt/edtService.cc +++ b/src/edt/edt/edtService.cc @@ -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; } }