Code

NR::Maybe => boost::optional
[inkscape.git] / src / sp-conn-end-pair.cpp
index 786209fdae0a4a859286a85aed84c59f45e55529..6ef3746845d650d96ee1a9da9103f6e4a06a1c6b 100644 (file)
@@ -167,7 +167,7 @@ SPConnEndPair::getEndpoints(NR::Point endPts[]) const {
 
     for (unsigned h = 0; h < 2; ++h) {
         if ( h2attItem[h] ) {
-            NR::Maybe<NR::Rect> bbox = h2attItem[h]->getBounds(from_2geom(sp_item_i2doc_affine(h2attItem[h])));
+            boost::optional<NR::Rect> bbox = h2attItem[h]->getBounds(from_2geom(sp_item_i2doc_affine(h2attItem[h])));
             if (bbox) {
                 endPts[h] = bbox->midpoint();
             } else {