Bugfix: inserting a Shapes container into another one did not always properly consider translation from editable to non-editable one and vice-versa

This commit is contained in:
Matthias Koefferlein 2026-07-22 22:29:12 +02:00
parent a82f428d4c
commit 7ed80e6dd8
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ Shapes::do_insert (const Shapes &d, unsigned int flags)
if (layout () == d.layout ()) {
// both shape containers reside in the same repository space - simply copy
if (m_layers.empty ()) {
if (m_layers.empty () && is_editable () == d.is_editable ()) {
m_layers.reserve (d.m_layers.size ());
for (tl::vector<LayerBase *>::const_iterator l = d.m_layers.begin (); l != d.m_layers.end (); ++l) {