Bug 122728 - Updating references displaces text cursor
Summary: Updating references displaces text cursor
Status: RESOLVED DUPLICATE of bug 38738
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
Depends on:
Reported: 2019-01-15 10:55 UTC by Christian Lehmann
Modified: 2020-08-15 20:27 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

Screen video showing updating of all references (18.46 MB, video/webm)
2019-01-15 16:56 UTC, Christian Lehmann

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Lehmann 2019-01-15 10:55:32 UTC
Text cursor is at position P. From the menu Tools, I choose Update and hit on Update everything. When update finishes, the cursor is no longer at P and instead at the position of the last item in the document which needed to be updated (for instance, a final index of terms). 

Steps to Reproduce:
1. Set text cursor at some position P.
2. Choose Tools > Update > Everything.
3. Wait for Update to finish.

Actual Results:
After finishing, the text cursor is a the last item of the document that contained a reference field.

Expected Results:
The cursor should be at P.

Reproducible: Always

User Profile Reset: No

OpenGL enabled: Yes

Additional Info:
Like my previous report on autorecovery not running in the background, this bug, too, is a (although unnecessary) consequence of LO programming not making use of threads. If it did, updating references would run in the background, letting me continue to work in the text. (And then, the menu option Tools > Update would not even be needed, because updating fields and references would continually be running in a separate background thread.)
Comment 1 Dieter 2019-01-15 13:59:55 UTC
I can't confirm with

Version: (x64)
Build-ID: 9d0f32d1f0b509096fd65e0d4bec26ddd1938fd3
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE); Calc: group threaded
Comment 2 Durgapriyanka 2019-01-15 16:53:13 UTC
Thank you for reporting the bug. I can not reproduce this bug in

Build ID: 3c964980da07892a02d5ac721d80558c459532d0
CPU threads: 2; OS: Windows 6.1; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2018-12-12_02:07:45
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded 


Build ID: 86daf60bf00efa86ad547e59e09d6bb77c699acb
CPU threads: 2; OS: Windows 6.1; UI render: default; 
Locale: en-US (en_US); Calc: group threaded
Comment 3 Christian Lehmann 2019-01-15 16:56:37 UTC
Created attachment 148341 [details]
Screen video showing updating of all references

As the video shows, the cursor is on a chapter heading before triggering the process and at the beginning of the terms index after it.
Comment 4 Durgapriyanka 2019-01-16 16:19:26 UTC
Can you please attach the document, so that I can test it again. Please do remove any sensitive information from the document if you have any.
Comment 5 Christian Lehmann 2019-01-16 16:40:44 UTC
There is no practicable way to generate a version of this document that could be made publicly available, as it is a book manuscript to be published soon. However, I would like to put it at your disposal, and more generally, at the disposal of the developers community, since it is a large document suitable for testing some other improvable features of LO Writer. So please give me an address where to send the file.
Comment 6 Buovjaga 2019-01-19 18:40:47 UTC
Durgapriyanka shared the document with me. Fortunately, we do not need it (or prepare some anonymised version), because I found an existing older report.

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