summaryrefslogtreecommitdiffstats
path: root/src/ui/view/edit-widget.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2007-03-09 00:25:51 +0000
committermental <mental@users.sourceforge.net>2007-03-09 00:25:51 +0000
commitb617f8eb8c9c9467caa4c15ba71259661d9222ce (patch)
tree515a14bc288f031bbb9b082dc5839e66fdb961cd /src/ui/view/edit-widget.cpp
parentfix reference maybes by separate specialization (diff)
downloadinkscape-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/ui/view/edit-widget.cpp')
-rw-r--r--src/ui/view/edit-widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/view/edit-widget.cpp b/src/ui/view/edit-widget.cpp
index 78e706a25..f386aefcc 100644
--- a/src/ui/view/edit-widget.cpp
+++ b/src/ui/view/edit-widget.cpp
@@ -1395,7 +1395,7 @@ EditWidget::updateScrollbars (double scale)
NR::Rect const viewbox = _svg_canvas.spobj()->getViewbox();
/* Viewbox is always included into scrollable region */
- carea = NR::Rect::union_bounds(carea, viewbox);
+ carea = NR::union_bounds(carea, viewbox);
Gtk::Adjustment *adj = _bottom_scrollbar.get_adjustment();
adj->set_value(viewbox.min()[NR::X]);