From: JazzyNico Date: Thu, 25 Nov 2010 19:26:01 +0000 (+0100) Subject: Patch for bug #588181 (Eraser: eraser stroke is drawn after clicking canvas but doesn... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=349613a24ee6f3970f80c4fae93c2e34d356610f;p=inkscape.git Patch for bug #588181 (Eraser: eraser stroke is drawn after clicking canvas but doesn't erase). --- 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; }