Fixed scale & snap bug in non-editable mode

This commit is contained in:
Matthias Koefferlein 2022-03-09 23:00:39 +01:00
parent 3b2db3b379
commit 0e1e4781a8
1 changed files with 1 additions and 1 deletions

View File

@ -520,7 +520,7 @@ scale_and_snap (db::Layout &layout, db::Cell &cell, db::Coord g, db::Coord m, db
for (db::Layout::layer_iterator l = layout.begin_layers (); l != layout.end_layers (); ++l) {
db::Shapes &s = c->shapes ((*l).first);
db::Shapes new_shapes;
db::Shapes new_shapes (layout.is_editable ());
for (db::Shapes::shape_iterator si = s.begin (db::ShapeIterator::Polygons | db::ShapeIterator::Paths | db::ShapeIterator::Boxes); ! si.at_end (); ++si) {