aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2007-02-22 00:50:51 +0000
committernyamatongwe <unknown>2007-02-22 00:50:51 +0000
commitf38220251afac345afbfdf67cc2081d53ac53efc (patch)
tree125526f6896310c411ea206af250a0c5a7470800 /src
parentfd1eebf73ee084135f7a1a1f4c44752ce6b76a6e (diff)
downloadscintilla-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.cxx2
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();