From 9683c4e36d15967f3dfab5d40257a303f863a392 Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Fri, 22 Feb 2013 08:40:57 -0500 Subject: Path->Division. patch for case where cutter is a line (Bug 177956) Fixed bugs: - https://launchpad.net/bugs/177956 (bzr r12138) --- src/splivarot.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/splivarot.cpp') diff --git a/src/splivarot.cpp b/src/splivarot.cpp index 7cbd92eeb..8ce9a012b 100644 --- a/src/splivarot.cpp +++ b/src/splivarot.cpp @@ -307,7 +307,10 @@ sp_selected_path_boolop(SPDesktop *desktop, bool_op bop, const unsigned int verb originaux[1]->ConvertWithBackData(1.0); - originaux[1]->Fill(theShape, 1,false,false,false); //do not closeIfNeeded + if ((originaux[1]->pts.size() == 2) && originaux[1]->pts[0].isMoveTo && !originaux[1]->pts[1].isMoveTo) + originaux[1]->Fill(theShape, 1,false,true,false); // see LP Bug 177956 + else + originaux[1]->Fill(theShape, 1,false,false,false); //do not closeIfNeeded theShapeB->ConvertToShape(theShape, fill_justDont); // fill_justDont doesn't computes winding numbers -- cgit v1.2.3