From b6792e77c6bd4e0a8db73da7b7e88319d6b9acfe Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Tue, 5 Nov 2019 02:16:58 +0000 Subject: Fix https://gitlab.com/inkscape/inbox/issues/871 Measure Segments LPE: Labels shifted, https://gitlab.com/inkscape/inkscape/issues/119, Measure Segments LPE: Measure bounding box + enlarge bb causes crash and https://gitlab.com/inkscape/inbox/issues/189 Measure Segments LPE: String formatting for label doesn't work as expected --- src/ui/tool/curve-drag-point.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ui') diff --git a/src/ui/tool/curve-drag-point.cpp b/src/ui/tool/curve-drag-point.cpp index 931726275..4e878d07e 100644 --- a/src/ui/tool/curve-drag-point.cpp +++ b/src/ui/tool/curve-drag-point.cpp @@ -69,6 +69,7 @@ bool CurveDragPoint::grabbed(GdkEventMotion */*event*/) void CurveDragPoint::dragged(Geom::Point &new_pos, GdkEventMotion *event) { + if (!first || !first.next()) return; NodeList::iterator second = first.next(); // special cancel handling - retract handles when if the segment was degenerate -- cgit v1.2.3