From 24c87cf413fa94ea530a0d599df724a8198b0b5f Mon Sep 17 00:00:00 2001 From: johanengelen Date: Mon, 14 Jul 2008 19:31:52 +0000 Subject: [PATCH] dyna-draw-context and eraser-context: replace check for empty path with 2geomified method of spcurve --- src/dyna-draw-context.cpp | 2 +- src/eraser-context.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.30.2