diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2012-02-15 07:26:41 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2012-02-15 07:26:41 +0000 |
| commit | d3a4d543c4d6eb4151b2acad892272cbc1ea3f45 (patch) | |
| tree | f02369e70e001bb296ca98f09cc8ace67100e19b /src/2geom/piecewise.cpp | |
| parent | cppcheck (diff) | |
| download | inkscape-d3a4d543c4d6eb4151b2acad892272cbc1ea3f45.tar.gz inkscape-d3a4d543c4d6eb4151b2acad892272cbc1ea3f45.zip | |
Synchronized 2geom to revision 2058
(bzr r10978)
Diffstat (limited to 'src/2geom/piecewise.cpp')
| -rw-r--r-- | src/2geom/piecewise.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/2geom/piecewise.cpp b/src/2geom/piecewise.cpp index ba1e60ea3..090da8e8d 100644 --- a/src/2geom/piecewise.cpp +++ b/src/2geom/piecewise.cpp @@ -238,7 +238,7 @@ std::vector<Interval> level_set(Piecewise<SBasis> const &f, Interval const &leve Interval domj( a, b ); //Interval domj( f.mapToDomain(resulti[j].min(), i ), f.mapToDomain(resulti[j].max(), i ) ); - if ( j==0 && result.size() > 0 && result.back().intersects(domj) ){ + if ( j==0 && !result.empty() && result.back().intersects(domj) ){ result.back().unionWith(domj); }else{ result.push_back(domj); |
