diff options
author | nyamatongwe <unknown> | 2007-02-22 00:50:51 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2007-02-22 00:50:51 +0000 |
commit | f38220251afac345afbfdf67cc2081d53ac53efc (patch) | |
tree | 125526f6896310c411ea206af250a0c5a7470800 /src | |
parent | fd1eebf73ee084135f7a1a1f4c44752ce6b76a6e (diff) | |
download | scintilla-mirror-f38220251afac345afbfdf67cc2081d53ac53efc.tar.gz |
Avoid reentrant painting when scroll is performed in a
notification by queueing a redraw.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 3070530cc..3396b4245 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1125,7 +1125,7 @@ void Editor::ScrollTo(int line, bool moveThumb) { ShowCaretAtCurrentPosition(); // Perform redraw rather than scroll if many lines would be redrawn anyway. #ifndef UNDER_CE - if (abs(linesToMove) <= 10) { + if ((abs(linesToMove) <= 10) && (paintState == notPainting)) { ScrollText(linesToMove); } else { Redraw(); |