Using LibreOffice v188.8.131.52 on Windows XP. I would like to preserve the cursor position when document is saved and reopened. I have noticed that cursor is preserved in correct line, but it is placed exactly 6 characters to the left instead of the real save position.
Steps to reproduce
1. Open Writer new document.
2. Tools | Options | LibreOffice | User Data. Make sure First/Last name fields are filed in.
Note: If this data fields are empty then LibreOffice does not remember cursor position on save. This is correct behavior, because LibreOffice remembers cursor position by user - so if multiple user are editing the same document each gets opened at the position he/she saved the file. If fields (user ownership data) are empty then LibreOffice does not know if each of the save was performed by the same user. To reduce confusion it just opens at the first character in first line.
3. Now type in (or copy bellow) some text like:
4. Place the cursor between BB characters (line 2) and save the document using ODF format.
5. Close document.
6. Reopen document.
Problem appears: What you can notice is that cursor is opened in line 2 between number 6 and 5. So cursor was remembered exactly 6 characters to the left.
Expected is to reopen at the position that was saved so between BB characters.
What works: It correctly reopens at the line it was saved, but it incorrectly reopens at exact cursor position inside line.
You can test the same saving inside AA or CC, save, reopen document and you will see the cursor is remembered 6 characters to the left in every row you save. The only exception is if cursor is placed before 6 character in the line. For example put cursor inside 8 and 7 in third line and save/reopen the document. If cursor is placed before 6 character in the line it is opened at position 1 in saved line. So correct line, but incorrect character position in line.
Created attachment 76598 [details]
sample file for cursor postion
I can't replicate the problem with your sample file.
However, using a similarly named file from a bug I reported some time ago, I can confirm that the cursor is not in the expected position
These two bugs are either the same or closely related :)
I have tried to replicate the same problem on the same system and I can't replicate this problem anymore = very strange. Also opening attached file opens without a problem. Don't know what happened, just can't replicate anymore...
If I manage to replicate the problem again, I will write more detailed info. I suggest to close this bug report as invalid or something.
Set to WORKSFORME since I also can't reproduce this and at the moment it is also working for the bug reporter.
grofaty: if this should re-appear please re-open this bug.