Next bug fix... this time regarding change tracking. Michael
[EMAIL PROTECTED] schrieb:
Author: schmitt Date: Sat Jan 20 17:59:13 2007 New Revision: 16783 URL: http://www.lyx.org/trac/changeset/16783 Log: * src/text.C: move forward when logically deleting character (previously broken; the cursor was even moved forward if the character was physically removed and the next character was marked as deleted) Modified: lyx-devel/trunk/src/text.C Modified: lyx-devel/trunk/src/text.C URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/text.C?rev=16783 ============================================================================== --- lyx-devel/trunk/src/text.C (original) +++ lyx-devel/trunk/src/text.C Sat Jan 20 17:59:13 2007 @@ -1042,9 +1042,10 @@ // this is the code for a normal delete, not pasting // any paragraphs recordUndo(cur, Undo::DELETE); - par.eraseChar(cur.pos(), cur.buffer().params().trackChanges); - if (par.isDeleted(cur.pos())) + if(!par.eraseChar(cur.pos(), cur.buffer().params().trackChanges)) { + // the character has been logically deleted only => skip it cur.forwardPosNoDescend(); + } needsUpdate = true; } else { if (cur.pit() == cur.lastpit()) _______________________________________________ Cvslog mailing list [EMAIL PROTECTED] http://www.lyx.org/mailman/listinfo/cvslog