aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2013-09-22 10:26:18 +1030
committernyamatongwe <unknown>2013-09-22 10:26:18 +1030
commit5bc0b4138858f4e81b40481230a47b1c1bef2d55 (patch)
treec39ba0766a785e665d5f2aed46c4b72c442f424c /src
parent9ca65291f4e4503ac79cc029015b6dcaf60d7fe7 (diff)
downloadscintilla-mirror-5bc0b4138858f4e81b40481230a47b1c1bef2d55.tar.gz
Avoid attempt to redraw an empty area.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
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();