Code

provide specific bounds method for Paths because paths can be closed or open. Path...
[inkscape.git] / src / 2geom / crossing.h
index 427848033dc22150733afaad60d43bd5e8785f26..593ce366257f5c4edec007601d1cfd9baf43a7b9 100644 (file)
@@ -40,6 +40,7 @@
 #include <2geom/rect.h>
 #include <2geom/sweep.h>
 #include <boost/optional/optional.hpp>
+#include <2geom/path.h>
 
 namespace Geom {
 
@@ -137,6 +138,8 @@ std::vector<Rect> bounds(C const &a) {
     }
     return rs;
 }
+// provide specific method for Paths because paths can be closed or open. Path::size() is named somewhat wrong...
+std::vector<Rect> bounds(Path const &a);
 
 inline void sort_crossings(Crossings &cr, unsigned ix) { std::sort(cr.begin(), cr.end(), CrossingOrder(ix)); }