mirror of https://github.com/KLayout/klayout.git
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:
parent
a82f428d4c
commit
7ed80e6dd8
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue