mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-29 17:30:09 +02:00
Avoid a segfault while editing a ruler. This happens is both a selection and a transient selection is active.
This commit is contained in:
@@ -195,7 +195,7 @@ AnnotationShapes::replace (iterator pos, const shape_type &&sh)
|
||||
manager ()->queue (this, new AnnotationLayerOp (true /*insert*/, sh));
|
||||
}
|
||||
invalidate_state (); // HINT: must come before the change is done!
|
||||
m_layer.replace (pos, sh);
|
||||
m_layer.replace (pos, std::move (sh));
|
||||
}
|
||||
return *pos;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user