Avoid a segfault while editing a ruler. This happens is both a selection and a transient selection is active.

This commit is contained in:
Matthias Koefferlein
2023-02-19 19:00:02 +01:00
parent 0a15425745
commit df562f502a
4 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -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;
}