aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-07-07 13:19:35 +1000
committerNeil <nyamatongwe@gmail.com>2017-07-07 13:19:35 +1000
commit9bf1ad8233827f83fafd4d6c4522d8f373142197 (patch)
tree01a1141341edacb56d773884de6bb2872eb94c3d /gtk
parent976e97303de40c6adc9f735c64b3a51b1c64b0c4 (diff)
downloadscintilla-mirror-9bf1ad8233827f83fafd4d6c4522d8f373142197.tar.gz
Backport: Bug [#1949]. Fix drawing failure in wrap mode for GTK+ 2.x.
Backport of changeset 6338:ebec660dcf48.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/ScintillaGTK.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 67177bb1c..aaf5c3fd7 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -2599,11 +2599,12 @@ gboolean ScintillaGTK::ExposeTextThis(GtkWidget * /*widget*/, GdkEventExpose *os
Paint(surfaceWindow.get(), rcPaint);
surfaceWindow->Release();
cairo_destroy(cr);
- if (paintState == paintAbandoned) {
+ if ((paintState == paintAbandoned) || repaintFullWindow) {
// Painting area was insufficient to cover new styling or brace highlight positions
FullPaint();
}
paintState = notPainting;
+ repaintFullWindow = false;
if (rgnUpdate) {
gdk_region_destroy(rgnUpdate);