From: johanengelen Date: Mon, 14 Jul 2008 19:31:52 +0000 (+0000) Subject: dyna-draw-context and eraser-context: replace check for empty path with 2geomified... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=24c87cf413fa94ea530a0d599df724a8198b0b5f;p=inkscape.git dyna-draw-context and eraser-context: replace check for empty path with 2geomified method of spcurve --- diff --git a/src/dyna-draw-context.cpp b/src/dyna-draw-context.cpp index eb54ce5fe..e90a6143c 100644 --- a/src/dyna-draw-context.cpp +++ b/src/dyna-draw-context.cpp @@ -1115,7 +1115,7 @@ fit_and_split(SPDynaDrawContext *dc, gboolean release) #endif /* Current calligraphic */ - if ( dc->cal1->get_length() == 0 || dc->cal2->get_length() == 0 ) { + if ( dc->cal1->is_empty() || dc->cal2->is_empty() ) { /* dc->npoints > 0 */ /* g_print("calligraphics(1|2) reset\n"); */ dc->cal1->reset(); diff --git a/src/eraser-context.cpp b/src/eraser-context.cpp index 8c542ebd3..49f86b03c 100644 --- a/src/eraser-context.cpp +++ b/src/eraser-context.cpp @@ -931,7 +931,7 @@ fit_and_split(SPEraserContext *dc, gboolean release) #endif /* Current eraser */ - if ( dc->cal1->get_length() == 0 || dc->cal2->get_length() == 0 ) { + if ( dc->cal1->is_empty() || dc->cal2->is_empty() ) { /* dc->npoints > 0 */ /* g_print("erasers(1|2) reset\n"); */ dc->cal1->reset();