X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fdesktop.cpp;h=54285c083c1cb7064f35f930b5914b4af8c17c7c;hb=8b9a820756fdf348239872236be2257f854e094a;hp=b8d9ef0b036543f9b929af206ff3dce7bc1a0b4c;hpb=34109961a6de6f936a370e48822f1bad70bc84b2;p=inkscape.git diff --git a/src/desktop.cpp b/src/desktop.cpp index b8d9ef0b0..54285c083 100644 --- a/src/desktop.cpp +++ b/src/desktop.cpp @@ -529,7 +529,7 @@ bool SPDesktop::isLayer(SPObject *object) const { bool SPDesktop::isWithinViewport (SPItem *item) const { NR::Rect const viewport = get_display_area(); - NR::Maybe const bbox = sp_item_bbox_desktop(item); + boost::optional const bbox = sp_item_bbox_desktop(item); if (bbox) { return viewport.contains(*bbox); } else { @@ -968,7 +968,7 @@ SPDesktop::zoom_page_width() void SPDesktop::zoom_selection() { - NR::Maybe const d = selection->bounds(); + boost::optional const d = selection->bounds(); if ( !d || d->isEmpty(0.1) ) { return; @@ -996,7 +996,7 @@ SPDesktop::zoom_drawing() SPItem *docitem = SP_ITEM (sp_document_root (doc())); g_return_if_fail (docitem != NULL); - NR::Maybe d = sp_item_bbox_desktop(docitem); + boost::optional d = sp_item_bbox_desktop(docitem); /* Note that the second condition here indicates that ** there are no items in the drawing.