summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dyna-draw-context.cpp2
-rw-r--r--src/eraser-context.cpp2
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();