From 7ed80e6dd87e326c9135a929f8e40e5656a312e5 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Wed, 22 Jul 2026 22:29:12 +0200 Subject: [PATCH] Bugfix: inserting a Shapes container into another one did not always properly consider translation from editable to non-editable one and vice-versa --- src/db/db/dbShapes.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/db/dbShapes.cc b/src/db/db/dbShapes.cc index 8176df950..5cdc5cb5b 100644 --- a/src/db/db/dbShapes.cc +++ b/src/db/db/dbShapes.cc @@ -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::const_iterator l = d.m_layers.begin (); l != d.m_layers.end (); ++l) {