Bennett Helm wrote:
In recent 1.5svn: start LyX, open a file, close it. LyX crashes. Here's the backtrace:

QPixmap::operator=: Cannot assign to pixmap during painting
QCoreGraphicsPaintEngine::begin: Painter already active
QPainter::begin(): Returned false

Does this patch solves the crash?

Abdel.

Index: frontends/qt4/GuiWorkArea.C
===================================================================
--- frontends/qt4/GuiWorkArea.C (revision 16474)
+++ frontends/qt4/GuiWorkArea.C (working copy)
@@ -508,6 +508,7 @@
 
 void GuiWorkArea::expose(int x, int y, int w, int h)
 {
+       setUpdatesEnabled(false);
        QLPainter pain(&screen_);
 
        if (greyed_out_) {
@@ -520,6 +521,7 @@
 
        verticalScrollBar()->show();
        paintText(*buffer_view_, pain);
+       setUpdatesEnabled(true);
        update(x, y, w, h);
 }
 

Reply via email to