diff options
| author | MenTaLguY <mental@rydia.net> | 2007-03-10 20:54:38 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-03-10 20:54:38 +0000 |
| commit | a99764de718f7331615d3f9449e10a56dee62fb6 (patch) | |
| tree | d60bc8389777a4384b8c931867a93c6491fffee5 /src/sp-item.cpp | |
| parent | fix setting knot->pos for node handles, but remove coords updating - now done... (diff) | |
| download | inkscape-a99764de718f7331615d3f9449e10a56dee62fb6.tar.gz inkscape-a99764de718f7331615d3f9449e10a56dee62fb6.zip | |
Merge further bbox work
(bzr r2596)
Diffstat (limited to 'src/sp-item.cpp')
| -rw-r--r-- | src/sp-item.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp index 0f6ea3839..eb3abce16 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -798,17 +798,11 @@ sp_item_bbox_desktop(SPItem *item, NRRect *bbox) sp_item_invoke_bbox(item, bbox, sp_item_i2d_affine(item), TRUE); } -NR::Rect sp_item_bbox_desktop(SPItem *item) +NR::Maybe<NR::Rect> sp_item_bbox_desktop(SPItem *item) { NRRect ret; sp_item_invoke_bbox(item, &ret, sp_item_i2d_affine(item), TRUE); - NR::Maybe<NR::Rect> result = ret.upgrade(); - if (result) { - return *result; - } else { - // FIXME - return NR::Rect(NR::Point(0, 0), NR::Point(0, 0)); - } + return ret.upgrade(); } static void sp_item_private_snappoints(SPItem const *item, SnapPointsIter p) |
