From ef3963e2d9f8439e0297aa38fe1a21877ec22f0e Mon Sep 17 00:00:00 2001 From: Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> Date: Wed, 24 Apr 2019 18:02:55 +1000 Subject: Stop crash on binary path division (flatpak) Not apparent without _GLIBCXX_ASSERTIONS Fixes https://gitlab.com/inkscape/inbox/issues/397 --- src/livarot/ShapeMisc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/livarot/ShapeMisc.cpp b/src/livarot/ShapeMisc.cpp index db5c19297..b76ea5875 100644 --- a/src/livarot/ShapeMisc.cpp +++ b/src/livarot/ShapeMisc.cpp @@ -397,7 +397,7 @@ Shape::ConvertToFormeNested (Path * dest, int nbP, Path * *orig, int /*wildPath* parentContour = GPOINTER_TO_INT(swdData[askTo].misc); parentContour-=1; // pour compenser le decalage } - childEdge = getPoint(fi).incidentEdge[FIRST]; + childEdge = getPoint(fi % numberOfPoints()).incidentEdge[FIRST]; } } lastPtUsed = fi + 1; -- cgit v1.2.3