From 349613a24ee6f3970f80c4fae93c2e34d356610f Mon Sep 17 00:00:00 2001 From: JazzyNico Date: Thu, 25 Nov 2010 20:26:01 +0100 Subject: [PATCH] Patch for bug #588181 (Eraser: eraser stroke is drawn after clicking canvas but doesn't erase). --- src/eraser-context.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/eraser-context.cpp b/src/eraser-context.cpp index 021479843..9b00dcd03 100644 --- a/src/eraser-context.cpp +++ b/src/eraser-context.cpp @@ -576,10 +576,13 @@ sp_eraser_context_root_handler(SPEventContext *event_context, dc->repr = NULL; } - Inkscape::Rubberband::get(desktop)->stop(); dc->_message_context->clear(); ret = TRUE; } + if (Inkscape::Rubberband::get(desktop)->is_started()) { + Inkscape::Rubberband::get(desktop)->stop(); + } + break; } -- 2.30.2