From 639c57612568acae901f268f45b4ac1c3e8cbff2 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 3 Dec 2004 23:14:04 +0000 Subject: Patch from Regis Vaquette to allow compilation for Windows CE. --- src/Document.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Document.cxx') diff --git a/src/Document.cxx b/src/Document.cxx index 76fa456cc..82f4c59bc 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -266,7 +266,7 @@ int Document::LenChar(int pos) { return 1; } } -#include + // Normalise a position so that it is not halfway through a two byte character. // This can occur in two situations - // When lines are terminated with \r\n pairs which should be treated as one character. @@ -280,7 +280,7 @@ int Document::MovePositionOutsideChar(int pos, int moveDir, bool checkLineEnd) { if (pos >= Length()) return Length(); - // assert pos > 0 && pos < Length() + // PLATFORM_ASSERT(pos > 0 && pos < Length()); if (checkLineEnd && IsCrLf(pos - 1)) { if (moveDir > 0) return pos + 1; -- cgit v1.2.3