summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ae9bb17)
raw | patch | inline | side by side (parent: ae9bb17)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 29 Jun 2008 13:15:53 +0000 (13:15 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 29 Jun 2008 13:15:53 +0000 (13:15 +0000) |
src/pen-context.cpp | patch | blob | history | |
src/verbs.cpp | patch | blob | history |
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index 78baacc76b210d4ac6446fff3f1aae4f0f00695f..9509efc69dc93c68738e39e01861ba6f9ccd6cdb 100644 (file)
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
return;
// green
- NArtBpath const * bpath = pc->green_curve->last_bpath();
- if (bpath) {
+ if (!pc->green_curve->is_empty()) {
pc->green_curve->last_point_additive_move( Geom::Point(x,y) );
} else {
// start anchor too
diff --git a/src/verbs.cpp b/src/verbs.cpp
index 494181e555e5536700740f2c4fa713efe8cec17e..8c5ce310b67e3089a2466b5e17e3cd612eb1c210 100644 (file)
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
// 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;
// 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;