From 9d87f7d5d103acdfdb975a944bccac21abd3f23e Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sun, 29 Jun 2008 13:15:53 +0000 Subject: replace some spcurve->last_bpath calls with spcurve->is_empty (bzr r6088) --- src/pen-context.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/pen-context.cpp') diff --git a/src/pen-context.cpp b/src/pen-context.cpp index 78baacc76..9509efc69 100644 --- a/src/pen-context.cpp +++ b/src/pen-context.cpp @@ -871,8 +871,7 @@ pen_lastpoint_move (SPPenContext *const pc, gdouble x, gdouble y) 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 -- cgit v1.2.3