diff options
author | nyamatongwe <unknown> | 2011-04-05 09:58:04 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-04-05 09:58:04 +1000 |
commit | b733adddc30795c140316a914406fbd1afdfdfa9 (patch) | |
tree | 491e761c127839311337b386a0807dd7ebb02951 /src | |
parent | ba5a0e5368d3bbe53096525dd659f9cdc418011c (diff) | |
download | scintilla-mirror-b733adddc30795c140316a914406fbd1afdfdfa9.tar.gz |
Avoid last cppcheck warning in Editor.cxx.
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 bc5e80cc9..92d172a8a 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -957,7 +957,9 @@ void Editor::ScrollTo(int line, bool moveThumb) { int topLineNew = Platform::Clamp(line, 0, MaxScrollPos()); if (topLineNew != topLine) { // Try to optimise small scrolls +#ifndef UNDER_CE int linesToMove = topLine - topLineNew; +#endif SetTopLine(topLineNew); // Optimize by styling the view as this will invalidate any needed area // which could abort the initial paint if discovered later. |