From 826a491dbe23e1816aafcdf3cc46b6c6a374c7f8 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 5 Apr 2011 09:58:04 +1000 Subject: Avoid last cppcheck warning in Editor.cxx. --- src/Editor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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. -- cgit v1.2.3