Bug 123242 - Reverting changes made with Undo is leading to inconsistent results.
Summary: Reverting changes made with Undo is leading to inconsistent results.
Status: NEW
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:
Blocks: Undo-Redo
  Show dependency treegraph
Reported: 2019-02-07 21:53 UTC by Richard
Modified: 2019-02-09 10:38 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

Described File (18.96 KB, application/vnd.oasis.opendocument.text)
2019-02-07 21:54 UTC, Richard

Note You need to log in before you can comment on or make changes to this bug.
Description Richard 2019-02-07 21:53:28 UTC
When opening the attached file and deleting the first two paragraphs, at the the initial cursor location, it will move the rest of the document upwards as expected.

However, when reverting these deletions with Undo, the rest of the document will end up on the next page, rather than in the middle of the first one, where it was initially.

Steps to Reproduce:
Open attached document.
At the initial cursor position, hit delete twice, removing the paragraphs.
I suggest enabling formatting marks for this.
Revert those two deletions with Undo.

Actual Results:
The rest of the document below the cursor position will end up on the second page.

Expected Results:
Returned to the same state as when the document was opened. Leaving the rest of the document back on the first page.

Reproducible: Always

User Profile Reset: No

Additional Info:
This document was initially a Microsoft Word OOXML document, saved with Word 2016, likely initially created in Word 2003.

When using the original OOXML file in Word, there isn't as much white space between the Quotation header and the table that starts with Attention. I'll file another bug for this issue.
Comment 1 Richard 2019-02-07 21:54:18 UTC
Created attachment 149000 [details]
Described File
Comment 2 Dieter Praas 2019-02-08 09:48:05 UTC
I confirm and with

Version: (x64)
Build ID: 411f3a050ac2be598019d512f8ccfe041080c28f
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-01-14_03:17:11
Locale: en-US (de_DE); UI-Language: en-US
Calc: threaded

and with

Version: (x64)
Build-ID: c838ef25c16710f8838b1faec480ebba495259d0
CPU-Threads: 4; BS: Windows 6.19; UI-Render: GL; 
Gebietsschema: de-DE (de_DE); Calc: CL