From 98b6dd14e99ce96c60965bc23cc69e1db77f06f1 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 5 Sep 2012 08:40:49 +1000 Subject: Fix crashes on Ubuntu with GTK+3 where scroll bar changes invalidate the drawing surface. --- src/Editor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index fea5a2336..2b2b1785d 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3438,6 +3438,8 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { AllocateGraphics(); RefreshStyleData(); + if (paintState == paintAbandoned) + return; // Scroll bars may have changed so need redraw RefreshPixMaps(surfaceWindow); StyleToPositionInView(PositionAfterArea(rcArea)); -- cgit v1.2.3