From f38220251afac345afbfdf67cc2081d53ac53efc Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 22 Feb 2007 00:50:51 +0000 Subject: Avoid reentrant painting when scroll is performed in a notification by queueing a redraw. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.3