A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
graphlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't read mouse status when condition is reached by termination.
[graphlib.git]
/
DrawingWindow.cpp
diff --git
a/DrawingWindow.cpp
b/DrawingWindow.cpp
index
1ab14ee
..
7015d6a
100644
(file)
--- a/
DrawingWindow.cpp
+++ b/
DrawingWindow.cpp
@@
-669,7
+669,7
@@
bool DrawingWindow::waitMousePress(int &x, int &y, int &button,
if (terminateThread) {
pressed = false;
} else {
- pressed = mouseCondition.wait(&mouseMutex, time);
+ pressed = mouseCondition.wait(&mouseMutex, time)
&& !terminateThread
;
if (pressed) {
x = mousePos.x();
y = mousePos.y();