diff options
| author | Neil <nyamatongwe@gmail.com> | 2017-07-07 13:19:35 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2017-07-07 13:19:35 +1000 | 
| commit | 9aa72c0c10dba58c8ccf20a2467f5d3a396c39d4 (patch) | |
| tree | 5e4e294a3929635efce9c1b9f5ada953b4e0b906 | |
| parent | 554dc6a20cc1f0494ae7035e3cb03d632edbef83 (diff) | |
| download | scintilla-mirror-9aa72c0c10dba58c8ccf20a2467f5d3a396c39d4.tar.gz | |
Bug [#1949]. Fix drawing failure in wrap mode for GTK+ 2.x.
| -rw-r--r-- | doc/ScintillaHistory.html | 1 | ||||
| -rw-r--r-- | gtk/ScintillaGTK.cxx | 3 | 
2 files changed, 3 insertions, 1 deletions
| diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index dafd6d9ab..6053fed1e 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -572,6 +572,7 @@  	<li>  	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.  	<a href="http://sourceforge.net/p/scintilla/bugs/1949/">Bug #1949</a>.  	</li>  	<li> 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); | 
