diff options
| author | Shlomi Fish <shlomif@shlomifish.org> | 2016-09-03 15:58:22 +0000 |
|---|---|---|
| committer | Shlomi Fish <shlomif@shlomifish.org> | 2016-09-03 15:58:22 +0000 |
| commit | 393e71d9039db8cb16435c16252e890361ec5988 (patch) | |
| tree | 8535faddae6f54765e45dfed3701eefc7411eb65 /src/livarot/Shape.cpp | |
| parent | Refactoring (diff) | |
| download | inkscape-393e71d9039db8cb16435c16252e890361ec5988.tar.gz inkscape-393e71d9039db8cb16435c16252e890361ec5988.zip | |
Avoid == true / == false.
(bzr r15100.1.11)
Diffstat (limited to 'src/livarot/Shape.cpp')
| -rw-r--r-- | src/livarot/Shape.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/livarot/Shape.cpp b/src/livarot/Shape.cpp index 0bb3390e8..ea6180bee 100644 --- a/src/livarot/Shape.cpp +++ b/src/livarot/Shape.cpp @@ -1688,8 +1688,7 @@ 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 == true && bs == false ) return -1; - if ( as == false && bs == true ) return 1; + if ( (as && !bs) || (!as && bs) ) return -1; } return tstSi; } |
