diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-06-29 13:15:53 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-06-29 13:15:53 +0000 |
| commit | 9d87f7d5d103acdfdb975a944bccac21abd3f23e (patch) | |
| tree | 937e6ff208eedc9ce63eacb32a7bfa7df348279f /src/verbs.cpp | |
| parent | recognize HLineSegment and VLineSegment while looping through curves (diff) | |
| download | inkscape-9d87f7d5d103acdfdb975a944bccac21abd3f23e.tar.gz inkscape-9d87f7d5d103acdfdb975a944bccac21abd3f23e.zip | |
replace some spcurve->last_bpath calls with spcurve->is_empty
(bzr r6088)
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 494181e55..8c5ce310b 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -1606,7 +1606,7 @@ ZoomVerb::perform(SPAction *action, void *data, void */*pdata*/) // While drawing with the pen/pencil tool, zoom towards the end of the unfinished path if (tools_isactive(dt, TOOLS_FREEHAND_PENCIL) || tools_isactive(dt, TOOLS_FREEHAND_PEN)) { SPCurve *rc = SP_DRAW_CONTEXT(ec)->red_curve; - if (rc->last_bpath()) { + if (!rc->is_empty()) { NR::Point const zoom_to (rc->last_point()); dt->zoom_relative_keep_point(zoom_to, mul*zoom_inc); break; @@ -1624,7 +1624,7 @@ ZoomVerb::perform(SPAction *action, void *data, void */*pdata*/) // While drawing with the pen/pencil tool, zoom away from the end of the unfinished path if (tools_isactive(dt, TOOLS_FREEHAND_PENCIL) || tools_isactive(dt, TOOLS_FREEHAND_PEN)) { SPCurve *rc = SP_DRAW_CONTEXT(ec)->red_curve; - if (rc->last_bpath()) { + if (!rc->is_empty()) { NR::Point const zoom_to (rc->last_point()); dt->zoom_relative_keep_point(zoom_to, 1 / (mul*zoom_inc)); break; |
