diff options
author | nyamatongwe <unknown> | 2013-09-22 10:26:18 +1030 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-09-22 10:26:18 +1030 |
commit | 5bc0b4138858f4e81b40481230a47b1c1bef2d55 (patch) | |
tree | c39ba0766a785e665d5f2aed46c4b72c442f424c /src | |
parent | 9ca65291f4e4503ac79cc029015b6dcaf60d7fe7 (diff) | |
download | scintilla-mirror-5bc0b4138858f4e81b40481230a47b1c1bef2d55.tar.gz |
Avoid attempt to redraw an empty area.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 306e375b1..5dd2df7e3 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -720,6 +720,8 @@ void Editor::RedrawSelMargin(int line, bool allAfter) { rcSelMargin.top = rcLine.top; if (!allAfter) rcSelMargin.bottom = rcLine.bottom; + if (rcSelMargin.Empty()) + return; } if (wMargin.GetID()) { Point ptOrigin = GetVisibleOriginInMain(); |