From 9f6689d44770e6384a645a7be520bf7d8a9de2b6 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. --- gtk/ScintillaGTK.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gtk') diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index be007e775..8a09b105b 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1213,6 +1213,10 @@ bool ScintillaGTK::ModifyScrollBars(int nMax, int nPage) { modified = true; } #endif + if (modified && (paintState == painting)) { + paintState = paintAbandoned; + } + return modified; } -- cgit v1.2.3