Code

Connector tool: make connectors avoid the convex hull of shapes.
[inkscape.git] / src / libnr / nr-convert2geom.h
index 7b501cddc109258495178546bfa2d98c75657384..b7cbd7ee803f907b2787d774432f6d27af5e4166 100644 (file)
@@ -45,8 +45,8 @@ inline NR::Rect from_2geom(Geom::Rect const & rect2geom) {
     NR::Rect rect(rect2geom.min(), rect2geom.max());
     return rect;
 }
-inline boost::optional<Geom::Rect> to_2geom(boost::optional<NR::Rect> const & rect) {
-    boost::optional<Geom::Rect> rect2geom;
+inline Geom::OptRect to_2geom(boost::optional<NR::Rect> const & rect) {
+    Geom::OptRect rect2geom;
     if (!rect) {
         return rect2geom;
     }