diff options
| author | MenTaLguY <mental@rydia.net> | 2007-03-09 00:25:51 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-03-09 00:25:51 +0000 |
| commit | b617f8eb8c9c9467caa4c15ba71259661d9222ce (patch) | |
| tree | 515a14bc288f031bbb9b082dc5839e66fdb961cd /src/selection.cpp | |
| parent | fix reference maybes by separate specialization (diff) | |
| download | inkscape-b617f8eb8c9c9467caa4c15ba71259661d9222ce.tar.gz inkscape-b617f8eb8c9c9467caa4c15ba71259661d9222ce.zip | |
specialize MaybeStorage for Rect, and start using reference maybes to
avoid some copies
(bzr r2582)
Diffstat (limited to 'src/selection.cpp')
| -rw-r--r-- | src/selection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selection.cpp b/src/selection.cpp index 5c60e5f41..49934cfd3 100644 --- a/src/selection.cpp +++ b/src/selection.cpp @@ -320,7 +320,7 @@ NR::Rect Selection::bounds() const NR::Maybe<NR::Rect> bbox = NR::Nothing(); for ( GSList const *i = items ; i != NULL ; i = i->next ) { - bbox = NR::Rect::union_bounds(bbox, sp_item_bbox_desktop(SP_ITEM(i->data))); + bbox = NR::union_bounds(bbox, sp_item_bbox_desktop(SP_ITEM(i->data))); } // TODO: return NR::Maybe<NR::Rect> |
