Code

Patch for bug #588181 (Eraser: eraser stroke is drawn after clicking canvas but doesn...
authorJazzyNico <nicoduf@yahoo.fr>
Thu, 25 Nov 2010 19:26:01 +0000 (20:26 +0100)
committerJazzyNico <nicoduf@yahoo.fr>
Thu, 25 Nov 2010 19:26:01 +0000 (20:26 +0100)
src/eraser-context.cpp

index 021479843a1a4ff9de526345c2a139b5b6c80931..9b00dcd036eaa13ed3ba3b1a7d4b22bc3ad217f1 100644 (file)
@@ -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;
     }