From: Diederik van Lierop Date: Fri, 12 Mar 2010 22:36:33 +0000 (+0100) Subject: Fix crash in spray tool caused by rev. 9158 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=590d2d545334e67365206a73dec75e29d91d0288;p=inkscape.git Fix crash in spray tool caused by rev. 9158 --- diff --git a/src/display/sp-canvas.cpp b/src/display/sp-canvas.cpp index 658276841..446066d93 100644 --- a/src/display/sp-canvas.cpp +++ b/src/display/sp-canvas.cpp @@ -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); }