From afc4e5d91a694ed0342feb8bafe1e7af684b3d8e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 8 Aug 2001 12:46:31 +0000 Subject: Inverted CARET_XEVEN test as it was tested incorrectly. --- 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 b4e192558..880d417d5 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -635,7 +635,7 @@ void Editor::EnsureCaretVisible(bool useMargin, bool vert, bool horiz) { int xOffsetNew = xOffset; if (pt.x < rcClient.left) { xOffsetNew = xOffset - (offsetLeft - pt.x); - } else if (((caretPolicy & CARET_XEVEN) && ((xOffset > 0) && useMargin)) || pt.x >= rcClient.right) { + } else if ((!(caretPolicy & CARET_XEVEN) && ((xOffset > 0) && useMargin)) || pt.x >= rcClient.right) { xOffsetNew = xOffset + (pt.x - offsetRight); int xOffsetEOL = xOffset + (ptEOL.x - offsetRight) - xMargin + 2; //Platform::DebugPrintf("Margin %d %d\n", xOffsetNew, xOffsetEOL); -- cgit v1.2.3