From 9c33efba40912d582a4844e4e82a72c13c8c4887 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Wed, 13 Aug 2008 19:06:18 +0000 Subject: make spcurve::first_point and last_point boost::optional (bzr r6617) --- src/verbs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/verbs.cpp') diff --git a/src/verbs.cpp b/src/verbs.cpp index 8d7a4a2a1..f96d0a4f0 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -1607,7 +1607,7 @@ ZoomVerb::perform(SPAction *action, void *data, void */*pdata*/) if (tools_isactive(dt, TOOLS_FREEHAND_PENCIL) || tools_isactive(dt, TOOLS_FREEHAND_PEN)) { SPCurve *rc = SP_DRAW_CONTEXT(ec)->red_curve; if (!rc->is_empty()) { - NR::Point const zoom_to (rc->last_point()); + Geom::Point const zoom_to (*rc->last_point()); dt->zoom_relative_keep_point(zoom_to, mul*zoom_inc); break; } @@ -1625,7 +1625,7 @@ ZoomVerb::perform(SPAction *action, void *data, void */*pdata*/) if (tools_isactive(dt, TOOLS_FREEHAND_PENCIL) || tools_isactive(dt, TOOLS_FREEHAND_PEN)) { SPCurve *rc = SP_DRAW_CONTEXT(ec)->red_curve; if (!rc->is_empty()) { - NR::Point const zoom_to (rc->last_point()); + Geom::Point const zoom_to (*rc->last_point()); dt->zoom_relative_keep_point(zoom_to, 1 / (mul*zoom_inc)); break; } -- cgit v1.2.3