From dd8505c0d64e2f2d42f7aeef761ca2fb42b01190 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 23 Dec 2008 11:33:11 +0000 Subject: Avoid warnings with gcc 4.3 --- src/PositionCache.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/PositionCache.cxx') diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index f40a15378..d9fb9a783 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -126,8 +126,8 @@ int LineLayout::LineLastVisible(int line) const { } bool LineLayout::InLine(int offset, int line) const { - return ((offset >= LineStart(line)) && (offset < LineStart(line + 1)) || - ((offset == numCharsInLine) && (line == (lines-1)))); + return ((offset >= LineStart(line)) && (offset < LineStart(line + 1))) || + ((offset == numCharsInLine) && (line == (lines-1))); } void LineLayout::SetLineStart(int line, int start) { -- cgit v1.2.3