Il 25/08/2011 22:12, Vincent van Ravesteijn ha scritto:

According to john I caused the crashes while fixing the scrolling. That's why I did not backport the fix.

However, I'm convinced that the underlying problem is already in branch.


I'd propose the attached fix, which doesn't trigger any (either sporadic and endless) recursive repaint anymore on my Ubuntu 11.04 + qt (4:4.7.2-0ubuntu6.2). If it's ok, then it would apply to BRANCH as well.

Can you spot any possible negative effect of the patch ?

Bye,

    T.
Index: src/frontends/qt4/GuiWorkArea.cpp
===================================================================
--- src/frontends/qt4/GuiWorkArea.cpp	(revisione 39526)
+++ src/frontends/qt4/GuiWorkArea.cpp	(copia locale)
@@ -1086,7 +1086,7 @@
 
 void GuiWorkArea::update(int x, int y, int w, int h)
 {
-	viewport()->repaint(x, y, w, h);
+	viewport()->update(QRect(x, y, w, h));
 }
 
 

Reply via email to