From 5bc0b4138858f4e81b40481230a47b1c1bef2d55 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 22 Sep 2013 10:26:18 +1030 Subject: Avoid attempt to redraw an empty area. --- src/Editor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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(); -- cgit v1.2.3