diff options
author | nyamatongwe <devnull@localhost> | 2013-09-22 10:26:18 +1030 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-09-22 10:26:18 +1030 |
commit | ff60a3c025573e4f73037c2652538fec1c0f0333 (patch) | |
tree | 8f0747fa5b760d85fe425a2c033640b4f4ac5b64 /src | |
parent | 15fa00db565cee01fa20757e0ad6481e3bed8944 (diff) | |
download | scintilla-mirror-ff60a3c025573e4f73037c2652538fec1c0f0333.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(); |