Code

Fix crash in spray tool caused by rev. 9158
authorDiederik van Lierop <mailat-signdiedenrezidotnl>
Fri, 12 Mar 2010 22:36:33 +0000 (23:36 +0100)
committerDiederik van Lierop <mailat-signdiedenrezidotnl>
Fri, 12 Mar 2010 22:36:33 +0000 (23:36 +0100)
src/display/sp-canvas.cpp

index 658276841d30fd995dddd707edb5d16190b0239f..446066d931a204eb73c583bc7a480dc5897fdbe6 100644 (file)
@@ -1332,7 +1332,7 @@ emit_event (SPCanvas *canvas, GdkEvent *event)
         // lost event. We can't wait for idle events to have current_item updated, we need it now!
         // Otherwise, scrolling when hovering above a pre-snap indicator won't work (for example)
         // See this bug report: https://bugs.launchpad.net/inkscape/+bug/522335/comments/8
-        while (canvas->need_repick) {
+        if (canvas->need_repick && !canvas->in_repick) {
             canvas->need_repick = FALSE;
             pick_current_item (canvas, (GdkEvent *) event);
         }