summaryrefslogtreecommitdiffstats
path: root/src/zoom-context.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2007-03-04 02:08:21 +0000
committermental <mental@users.sourceforge.net>2007-03-04 02:08:21 +0000
commit4f7fe42548e3f91dffc8df220c04f16911497346 (patch)
treee72476964c14896870222829d38e55f387ed3995 /src/zoom-context.cpp
parentremove debug messages that sneaked in (diff)
downloadinkscape-4f7fe42548e3f91dffc8df220c04f16911497346.tar.gz
inkscape-4f7fe42548e3f91dffc8df220c04f16911497346.zip
make conversions away from NR::Maybe explicit
(bzr r2530)
Diffstat (limited to 'src/zoom-context.cpp')
-rw-r--r--src/zoom-context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zoom-context.cpp b/src/zoom-context.cpp
index 62395581f..d2b0d6849 100644
--- a/src/zoom-context.cpp
+++ b/src/zoom-context.cpp
@@ -163,8 +163,8 @@ static gint sp_zoom_context_root_handler(SPEventContext *event_context, GdkEvent
case GDK_BUTTON_RELEASE:
if ( event->button.button == 1 ) {
NR::Maybe<NR::Rect> const b = Inkscape::Rubberband::get()->getRectangle();
- if (b != NR::Nothing() && !within_tolerance) {
- desktop->set_display_area(b.assume(), 10);
+ if (b && !within_tolerance) {
+ desktop->set_display_area(*b, 10);
} else if (!escaped) {
NR::Point const button_w(event->button.x, event->button.y);
NR::Point const button_dt(desktop->w2d(button_w));