summaryrefslogtreecommitdiffstats
path: root/src/splivarot.cpp
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2013-02-22 13:40:57 +0000
committerapenner <penner@vaxxine.com>2013-02-22 13:40:57 +0000
commit9683c4e36d15967f3dfab5d40257a303f863a392 (patch)
tree7bdd9c94c7019e7972902b377fede88243b2b985 /src/splivarot.cpp
parentBug 1111459: revert changes from r12012 (regressions affect normal usage more... (diff)
downloadinkscape-9683c4e36d15967f3dfab5d40257a303f863a392.tar.gz
inkscape-9683c4e36d15967f3dfab5d40257a303f863a392.zip
Path->Division. patch for case where cutter is a line (Bug 177956)
Fixed bugs: - https://launchpad.net/bugs/177956 (bzr r12138)
Diffstat (limited to 'src/splivarot.cpp')
-rw-r--r--src/splivarot.cpp5
1 files changed, 4 insertions, 1 deletions
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