From d0b59574279e8b25149adb3393b522897f84fe6c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 19 Jan 2010 02:30:56 +0000 Subject: Reduced scope of variable. --- src/Document.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Document.cxx b/src/Document.cxx index ab29c798a..a5d1adbbb 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -804,8 +804,8 @@ int Document::GetColumn(int pos) { int Document::FindColumn(int line, int column) { int position = LineStart(line); - int columnCurrent = 0; if ((line >= 0) && (line < LinesTotal())) { + int columnCurrent = 0; while ((columnCurrent < column) && (position < Length())) { char ch = cb.CharAt(position); if (ch == '\t') { -- cgit v1.2.3