Fix for a race condition when starting paintingpossible-painter-fix
commit7b7275a27e01f6ed3a0e41c7801b926de9f93d4a
authorMark Longair <longair@ini.phys.ethz.ch>
Mon, 26 Jul 2010 16:03:05 +0000 (26 18:03 +0200)
committerMark Longair <longair@ini.phys.ethz.ch>
Mon, 26 Jul 2010 16:03:05 +0000 (26 18:03 +0200)
tree071287d414ed75cdf8f6cad99cf71892829e0162
parentd686a84a611028149bac5a599c7ea3bfb9ca7d76
Fix for a race condition when starting painting

It was possible for the last mouseMoved event (with no buttons
held down) to update flags after the mousePressed and mouseDragged
events (with the left button held down) had set them, which would
cause the Painter thread to exit immediately.  This can be fixed
by updating the flags in mouseMoved() before dispatching the event
to the MouseMovedThread for further processing.
ini/trakem2/display/DisplayCanvas.java