Bug 105244 - WRITER VIEWING "Tools/Update>Update All" command causes cursor and display to move when in included section
Summary: WRITER VIEWING "Tools/Update>Update All" command causes cursor and display to...
Status: RESOLVED DUPLICATE of bug 38738
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) Windows (All)
: medium minor
Assignee: Not Assigned
Depends on:
Reported: 2017-01-10 23:52 UTC by Eric Christenson
Modified: 2017-01-13 18:56 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

TopDoc (31.71 KB, application/vnd.oasis.opendocument.text)
2017-01-13 18:55 UTC, Buovjaga
SubDoc (25.22 KB, application/vnd.oasis.opendocument.text)
2017-01-13 18:56 UTC, Buovjaga

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Christenson 2017-01-10 23:52:30 UTC
Writer under LO Writer r5.2.3.3 using a document that includes another document as a section, the "Tools/Update>Update All" command causes the cursor shown withing the included document to jump substantially and the document to scroll.  

That is, a document called TopDoc3 includes Subdoc as a section.  Subdoc itself has a number of conditionally hidden sections within it and spans half a dozen or more pages.  Typically, something will get fixed on the fourth page of subdoc, this is saved, and then it will need checking on in TopDoc3, so TopDoc3 is open to where the correction was needed and the "Tools/Update> Update All" command is used.  The result is that the cursor and the display jump to the end of the included section.  Ideally, the "Tools/Update> Update All" command does not cause either the display or the cursor to move except to show how subdoc or its interpretation has changed.

Steps to Reproduce:
As described above:
1. Windows10 machine, download LO US English and install
1. Create TopDoc3 with some text.  You don't need to, but the full use case uses fields to set a number of variables, and has you creating TopDoc1 and TopDoc2 with different values and variables.
2. Create Subdoc with 3-4 pages of text.  You don't need to, but the full use case places a number of sections in Subdoc that are hidden on the basis of the variables in TopDoc1 through TopDoc3.
3. Insert/Section (linked to file Subdoc) in TopDoc3
4. Inspect the second page of TopDoc3, place the cursor there. 
5. You don't have to actually change SubDoc, but this is the use case
6. Tools/Update > Update All
7. Now the cursor is at the end of the included section from SubDoc, not where you were looking!
8. Return the cursor to the middle of the material from Subdoc.  Scroll up so you can see the first page of TopDoc3.
9. Tools/Update>Update All

Actual Results:  
7 and 9. Tools/Update>Update All moves the cursor and scrolls the display.

Expected Results:
7 and 9. Tools/Update>Update All *do not* move the cursor or scroll the display.

Reproducible: Always

User Profile Reset: No

Additional Info:

User-Agent: Mozilla/5.0 (X11; Linux i686; rv:50.0) Gecko/20100101 Firefox/50.0
Comment 1 Buovjaga 2017-01-13 18:55:57 UTC
Created attachment 130397 [details]
Comment 2 Buovjaga 2017-01-13 18:56:15 UTC
Created attachment 130398 [details]
Comment 3 Buovjaga 2017-01-13 18:56:40 UTC
I created test docs and confirmed, but this seems to be a dupe of bug 38738.

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