Bug 152097 - Writer document does not open at last cursor position
Summary: Writer document does not open at last cursor position
Status: RESOLVED DUPLICATE of bug 140147
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.7.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-18 01:00 UTC by JohnHa
Modified: 2023-02-05 09:07 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
A test file to test the location where Writer opens the document (57.42 KB, application/vnd.oasis.opendocument.text)
2022-11-18 01:50 UTC, JohnHa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description JohnHa 2022-11-18 01:00:59 UTC
Description:
If a user has inserted User Data in Tools > Options then any document they open should open at the position at which the cursor was located when the document was closed.  

The document opens at the very top with the cursor at the first character.

This is a regression - it worked as expected in 7.0.6.2.

Steps to Reproduce:
1.  Insert Surname, Forename and Initials text in Tools > Options > LibreOffice > User Data.
2.  Open fred.odt which has a few pages of text.  
3.  Make a small edit on the last page.  Do not move cursor - leave it at the edit.
4.  Save fred.odt
5.  Open fred.odt

Actual Results:
Document opens with cursor at top of document

Expected Results:
Document should open at the last cursor position on the last page.


Reproducible: Always


User Profile Reset: No

Additional Info:
This is a regression - it worked as expected in 7.0.6.2.

I then installed 7.3.7.2 which used the profile from 7.0.6.2 so it is not a profile problem

Other users are experiencing it.
Comment 1 JohnHa 2022-11-18 01:12:17 UTC
Not reproduceable.  Possibly caused by a lock file being present when tested.
Comment 2 JohnHa 2022-11-18 01:50:33 UTC
Created attachment 183653 [details]
A test file to test the location where Writer opens the document

I attach fred.odt which I am using for testing.

The behaviour is quite random and the document opens with the cursor at different positions on each opening.  Some of the locations of the cursor are repeated on different openings but none are where the cursor was located when the document was saved.

I reset the profile and added back the User Data.  The random behaviour continued.
Comment 3 Mike Kaganski 2022-11-18 06:23:52 UTC

*** This bug has been marked as a duplicate of bug 141586 ***
Comment 4 Aron Budea 2023-02-05 09:07:36 UTC

*** This bug has been marked as a duplicate of bug 140147 ***