summaryrefslogtreecommitdiffstats
path: root/src/2geom
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-03-23 17:45:35 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-03-23 17:45:35 +0000
commitec3232de2273e8d3e1efc0b89b30c770dd6a9a71 (patch)
treee084165557d264e0d7641647af1bdd9f9765897b /src/2geom
parentFixed bug continuing cusp nodes (diff)
parentfix Windows build for newer gcc/libs (diff)
downloadinkscape-ec3232de2273e8d3e1efc0b89b30c770dd6a9a71.tar.gz
inkscape-ec3232de2273e8d3e1efc0b89b30c770dd6a9a71.zip
update to trunk
(bzr r11950.1.311)
Diffstat (limited to 'src/2geom')
-rw-r--r--src/2geom/generic-interval.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/2geom/generic-interval.h b/src/2geom/generic-interval.h
index 41eaf59b0..f6d4718de 100644
--- a/src/2geom/generic-interval.h
+++ b/src/2geom/generic-interval.h
@@ -274,10 +274,12 @@ public:
/** @brief Union with another interval, gracefully handling empty ones. */
void unionWith(GenericOptInterval<C> const &a) {
- if (*this) { // check that we are not empty
- (*this)->unionWith(*a);
- } else if (a) {
- *this = *a;
+ if (a) {
+ if (*this) { // check that we are not empty
+ (*this)->unionWith(*a);
+ } else {
+ *this = *a;
+ }
}
}
void intersectWith(GenericOptInterval<C> const &o) {