# HG changeset patch # User Neil # Date 1499397575 -36000 # Node ID ebec660dcf48ec92301441140550f67d3e7ceb29 # Parent 79f86be9e988efc5b1462ae549c271c4f3a1b82c Bug [#1949]. Fix drawing failure in wrap mode for GTK+ 2.x. diff -r 79f86be9e988 -r ebec660dcf48 doc/ScintillaHistory.html --- a/doc/ScintillaHistory.html Fri Jul 07 12:55:23 2017 +1000 +++ b/doc/ScintillaHistory.html Fri Jul 07 13:19:35 2017 +1000 @@ -572,6 +572,7 @@
  • Fix drawing failure when in wrap mode for delete to start/end of line which affects later lines but did not redraw them. + Also fixed drawing for wrap mode on GTK+ 2.x. Bug #1949.
  • diff -r 79f86be9e988 -r ebec660dcf48 gtk/ScintillaGTK.cxx --- a/gtk/ScintillaGTK.cxx Fri Jul 07 12:55:23 2017 +1000 +++ b/gtk/ScintillaGTK.cxx Fri Jul 07 13:19:35 2017 +1000 @@ -2599,11 +2599,12 @@ 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) {