diff options
| author | Shlomi Fish <shlomif@shlomifish.org> | 2016-09-03 14:49:58 +0000 |
|---|---|---|
| committer | Shlomi Fish <shlomif@shlomifish.org> | 2016-09-03 14:49:58 +0000 |
| commit | f671a0bdd888b41bcb6cac102575971b7686ecc3 (patch) | |
| tree | c98d6c00566ea6f66c426175934f0faf41304565 /src/livarot/PathOutline.cpp | |
| parent | Remove == true. (diff) | |
| download | inkscape-f671a0bdd888b41bcb6cac102575971b7686ecc3.tar.gz inkscape-f671a0bdd888b41bcb6cac102575971b7686ecc3.zip | |
Convert to boolean truth/falsehood.
Refactoring.
(bzr r15100.1.9)
Diffstat (limited to 'src/livarot/PathOutline.cpp')
| -rw-r--r-- | src/livarot/PathOutline.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/livarot/PathOutline.cpp b/src/livarot/PathOutline.cpp index 0683d8ae8..7043469d2 100644 --- a/src/livarot/PathOutline.cpp +++ b/src/livarot/PathOutline.cpp @@ -424,7 +424,7 @@ void Path::SubContractOutline(int off, int num_pd, } else if (nType == descr_close) { - if (doFirst == false) + if (! doFirst) { if (Geom::LInfty (curX - firstP) < 0.0001) { @@ -810,7 +810,7 @@ void Path::SubContractOutline(int off, int num_pd, } if (closeIfNeeded) { - if (doFirst == false) + if (! doFirst) { } } @@ -853,7 +853,7 @@ Path::IsNulCurve (std::vector<PathDescr*> const &cmd, int curD, Geom::Point cons { PathDescrArcTo* nData = dynamic_cast<PathDescrArcTo*>(cmd[curD]); if ( Geom::LInfty(nData->p - curX) < 0.00001) { - if ((nData->large == false) + if ((! nData->large) || (fabs (nData->rx) < 0.00001 || fabs (nData->ry) < 0.00001)) { return true; @@ -1004,7 +1004,7 @@ void Path::TangentOnArcAt(double at, const Geom::Point &iS, PathDescrArcTo const if (wise) { - if (large == true) + if (large) { drx = -drx; dry = -dry; @@ -1021,7 +1021,7 @@ void Path::TangentOnArcAt(double at, const Geom::Point &iS, PathDescrArcTo const } else { - if (large == false) + if (! large) { drx = -drx; dry = -dry; |
