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
.
[graphlib.git]
/
DrawingWindow.cpp
diff --git
a/DrawingWindow.cpp
b/DrawingWindow.cpp
index
b60eb06
..
64508ff
100644
(file)
--- a/
DrawingWindow.cpp
+++ b/
DrawingWindow.cpp
@@
-189,6
+189,7
@@
void DrawingWindow::closeEvent(QCloseEvent *ev)
void DrawingWindow::customEvent(QEvent *)
{
void DrawingWindow::customEvent(QEvent *)
{
+ d->paintMutex.lock();
d->imageMutex.lock();
if (d->dirtyFlag) {
QRect r = d->dirtyRect;
d->imageMutex.lock();
if (d->dirtyFlag) {
QRect r = d->dirtyRect;
@@
-197,7
+198,6
@@
void DrawingWindow::customEvent(QEvent *)
repaint(r);
} else
d->imageMutex.unlock();
repaint(r);
} else
d->imageMutex.unlock();
- d->paintMutex.lock();
d->paintCondition.wakeAll();
d->paintMutex.unlock();
}
d->paintCondition.wakeAll();
d->paintMutex.unlock();
}