diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-08-13 19:06:18 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-08-13 19:06:18 +0000 |
| commit | 9c33efba40912d582a4844e4e82a72c13c8c4887 (patch) | |
| tree | 0375f8c5f56a9ce8d03bc483ab0c14d223d6f39e /src/verbs.cpp | |
| parent | return boost::optional for second and penultimate points of SPCurve (diff) | |
| download | inkscape-9c33efba40912d582a4844e4e82a72c13c8c4887.tar.gz inkscape-9c33efba40912d582a4844e4e82a72c13c8c4887.zip | |
make spcurve::first_point and last_point boost::optional
(bzr r6617)
Diffstat (limited to 'src/verbs.cpp')
| -rw-r--r-- | src/verbs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |
