From a30a0e2f3c822aae4dfcf2f502bc825b85cfc0af Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Tue, 27 Mar 2007 14:35:48 +0000 Subject: [PATCH] Some more debug information in case the cursor is ill git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17592 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/cursor.C | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cursor.C b/src/cursor.C index 387fb087df..7acb8c48fd 100644 --- a/src/cursor.C +++ b/src/cursor.C @@ -1299,6 +1299,7 @@ void LCursor::fixIfBroken() << ", max is " << copy.lastidx() << " at level " << copy.depth() << ". Trying to correct this." << endl; + lyxerr << "old: " << *this << endl; newdepth = copy.depth() - 1; } else if (copy.pit() > copy.lastpit()) { @@ -1306,6 +1307,7 @@ void LCursor::fixIfBroken() << ", max is " << copy.lastpit() << " at level " << copy.depth() << ". Trying to correct this." << endl; + lyxerr << "old: " << *this << endl; newdepth = copy.depth() - 1; } else if (copy.pos() > copy.lastpos()) { @@ -1313,6 +1315,7 @@ void LCursor::fixIfBroken() << ", max is " << copy.lastpos() << " at level " << copy.depth() << ". Trying to correct this." << endl; + lyxerr << "old: " << *this << endl; newdepth = copy.depth() - 1; } copy.pop(); @@ -1322,6 +1325,8 @@ void LCursor::fixIfBroken() while (depth() > newdepth) { pop(); lyxerr << "correcting cursor to level " << depth() << endl; + lyxerr << "new: " << *this << endl; + clearSelection(); } } -- 2.39.5