To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=59025
------- Additional comments from [EMAIL PROTECTED] Mon Jul 9 13:33:09 +0000 2007 ------- ama->liuyu: Maybe the following findings are helpful... Problem: 1. Create new document 2. Insert some text 3. Put the cursor to the end of the text. 4. Insert a text frame. 5. Undo => The cursor jumps to the top of the document. Reason: When Undo is performed, the current cursor is placed in the text frame. This text frame vanishes during the Undo action, so the cursor position has to be readjusted. Current code: SwUndoInsLayFmt::Undo(..) calls SwUndo::RemoveIdxFromSection(..) calls SwDoc::CorrAbs(..), this methods sets the current cursor from the vanishing node to the first SwEndNode of the document's nodes array, but this is not a valid cursor position. Later on SwCrsrShell::EndAction(..) calls SwCrsrShell::UpdateCrsr(..) calls SwCrsrShell::ClearUpCrsr(..), this method recognizes the invalid cursor position and sets it to the top of the document. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]