From fb74387b44b81796a498c5e1945c14d01ecd43bd Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Wed, 30 May 2007 06:58:08 +0000 Subject: [PATCH] * put debug variables into #ifdef 0 block. Good that modern computer science can enforce good code quality by stopping compilation if unused variables are found. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18577 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Text2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Text2.cpp b/src/Text2.cpp index 27b70aabb0..d0b715f609 100644 --- a/src/Text2.cpp +++ b/src/Text2.cpp @@ -991,7 +991,7 @@ bool Text::cursorLeft(Cursor & cur) // if on right side of boundary (i.e. not at paragraph end, but line end) // -> skip it, i.e. set boundary to true, i.e. go only logically left // there are some exceptions to ignore this: lineseps, newlines, spaces -#ifdef DEBUG +#if 0 bool bound = cur.boundary(); int rowpos = cur.textRow().pos(); int pos = cur.pos(); @@ -1039,7 +1039,7 @@ bool Text::cursorRight(Cursor & cur) // next position is left of boundary, // but go to next line for special cases like space, newline, linesep -#ifdef DEBUG +#if 0 int endpos = cur.textRow().endpos(); int lastpos = cur.lastpos(); int pos = cur.pos(); -- 2.39.2