summaryrefslogtreecommitdiffstats
path: root/src/2geom/crossing.h
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2008-11-21 05:24:08 +0000
committerTed Gould <ted@canonical.com>2008-11-21 05:24:08 +0000
commit44a3a78fb6a3863c0c7f3c1193837337e68a67e4 (patch)
tree1722ee5ec6f88c881cd4124923354b3c1311501b /src/2geom/crossing.h
parentMerge from trunk (diff)
downloadinkscape-44a3a78fb6a3863c0c7f3c1193837337e68a67e4.tar.gz
inkscape-44a3a78fb6a3863c0c7f3c1193837337e68a67e4.zip
Merge from fe-moved
(bzr r6891)
Diffstat (limited to 'src/2geom/crossing.h')
-rw-r--r--src/2geom/crossing.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/2geom/crossing.h b/src/2geom/crossing.h
index 291f69382..3ad034ac9 100644
--- a/src/2geom/crossing.h
+++ b/src/2geom/crossing.h
@@ -120,7 +120,12 @@ typedef std::vector<Crossings> CrossingSet;
template<typename C>
std::vector<Rect> bounds(C const &a) {
std::vector<Rect> rs;
- for(unsigned i = 0; i < a.size(); i++) rs.push_back(a[i].boundsFast());
+ for (unsigned i = 0; i < a.size(); i++) {
+ OptRect bb = a[i].boundsFast();
+ if (bb) {
+ rs.push_back(*bb);
+ }
+ }
return rs;
}