Issue 101182 - Last cursor position wrong after reloading document with redlines
Summary: Last cursor position wrong after reloading document with redlines
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: OOo 3.0.1
Hardware: PC All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-18 15:10 UTC by stfhell
Modified: 2017-05-20 11:18 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
test case doc (cursor was in heading on page 8 when doc was saved) (40.37 KB, application/vnd.oasis.opendocument.text)
2009-04-18 15:13 UTC, stfhell
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description stfhell 2009-04-18 15:10:19 UTC
Writer is supposed to save the current cursor position along with the document
and to reopen the document at this position.

If the document contains (more than a trivial amount of) text edited using the
"track changes" function (redlined text), Writer "misses" the correct cursor
position by a variable degree when reopening the document. Sometimes the cursor
is placed correctly, sometimes a few characters/lines before or after the last
cursor location, sometimes several pages. This seems to depend on the amount of
redlined text that was before the cursor position when saving.

I noticed this bug with StarOffice 8 (Windows) and OpenOffice 3.0.1 (OOO300m15)
and 2.0.4 (Linux).

In my daily work with large documents, I notice this behaviour constantly, but
when producing a test case document, I found it difficult to reproduce this
error easily. Cursor position is restored correctly with a moderate number of
redlined text, it requires a fairly complex document with heavier redlined
editing for this bug to show up.
Comment 1 stfhell 2009-04-18 15:13:48 UTC
Created attachment 61658 [details]
test case doc (cursor was in heading on page 8 when doc was saved)
Comment 2 eric.savary 2009-04-20 09:32:10 UTC
@OD:
(- Make sure you have user data entered in Tools - Options)
- open the sample doc
- go to "Placed cursor here when saving: []"
- type something in the brackets
- Save reload
-> the cursor is in the paragrpah above "Long integer variables can store any
whole number between..."

Also reproducible when typing 1 character at the first position of the doc,
save, reload: The cursor is then 12 characters after where it should be.

Comment 3 Oliver-Rainer Wittmann 2009-04-24 10:55:20 UTC
First guess for a root cause:
The actual cursor position is stored as a certain position in the document. It
seems that this position is searched before the view is in its final state.

Workaround: Hit <Shift-F5> to jump to the last cursor position.
Comment 4 Marcus 2009-06-24 10:15:28 UTC
.
Comment 5 Oliver-Rainer Wittmann 2009-07-13 11:19:00 UTC
OD->OS: please take over as discussed.
Comment 6 Oliver-Rainer Wittmann 2009-07-17 11:25:07 UTC
Deeper investigation reveals that the data in the layout-cache (binary data
about the layout of a text document additionally written to the ODF file) is not
correct. But, correct data of the layout-cache is needed to place the cursor at
the last position without formatting the complete text document.
Comment 7 Oliver Specht 2009-08-03 15:02:30 UTC
Reassigned to od
Comment 8 Marcus 2017-05-20 11:18:07 UTC
Reset assigne to the default "issues@openoffice.apache.org".