summaryrefslogtreecommitdiffstats
path: root/src/livarot/Shape.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/livarot/Shape.cpp')
-rw-r--r--src/livarot/Shape.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/livarot/Shape.cpp b/src/livarot/Shape.cpp
index ea6180bee..33b383947 100644
--- a/src/livarot/Shape.cpp
+++ b/src/livarot/Shape.cpp
@@ -1688,7 +1688,8 @@ Shape::CmpToVert (Geom::Point ax, Geom::Point bx,bool as,bool bs)
if (si > 0.000001) tstSi = 1;
if (si < -0.000001) tstSi = -1;
if ( tstSi == 0 ) {
- if ( (as && !bs) || (!as && bs) ) return -1;
+ if ( as && !bs ) return -1;
+ if ( !as && bs ) return 1;
}
return tstSi;
}