summaryrefslogtreecommitdiffstats
path: root/src/splivarot.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-03-07 23:40:41 +0000
committerJabiertxo Arraiza Zenotz <jtx@jtx.marker.es>2013-03-07 23:40:41 +0000
commitffca253daf7e55a0508c15393d672e01c65e2df0 (patch)
tree433af1c703dab415442346ff4161586f87ad7315 /src/splivarot.cpp
parentPermanent show outline in BSpline mode (diff)
parentFix deprecated Gtkmm symbols in preferences widget (diff)
downloadinkscape-ffca253daf7e55a0508c15393d672e01c65e2df0.tar.gz
inkscape-ffca253daf7e55a0508c15393d672e01c65e2df0.zip
update to trunk
(bzr r11950.1.48)
Diffstat (limited to 'src/splivarot.cpp')
-rw-r--r--src/splivarot.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/splivarot.cpp b/src/splivarot.cpp
index 8ce9a012b..061d32554 100644
--- a/src/splivarot.cpp
+++ b/src/splivarot.cpp
@@ -261,10 +261,13 @@ sp_selected_path_boolop(SPDesktop *desktop, bool_op bop, const unsigned int verb
theShapeB->ConvertToShape(theShape, origWind[curOrig]);
- // les elements arrivent en ordre inverse dans la liste
- theShape->Booleen(theShapeB, theShapeA, bop);
-
- {
+ if (theShapeA->numberOfEdges() == 0) {
+ Shape *swap = theShapeB;
+ theShapeB = theShapeA;
+ theShapeA = swap;
+ } else if (theShapeB->numberOfEdges() > 0) {
+ // les elements arrivent en ordre inverse dans la liste
+ theShape->Booleen(theShapeB, theShapeA, bop);
Shape *swap = theShape;
theShape = theShapeA;
theShapeA = swap;