Bug 134702 - Additional page added after pressing undo, not there upon reopen
Summary: Additional page added after pressing undo, not there upon reopen
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.0.1 rc
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Undo-Redo
  Show dependency treegraph
 
Reported: 2020-07-09 21:37 UTC by Telesto
Modified: 2023-04-20 11:42 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (732.68 KB, application/vnd.oasis.opendocument.text)
2020-07-09 21:37 UTC, Telesto
Details
Bibisect log (3.37 KB, text/plain)
2020-07-09 21:38 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-07-09 21:37:34 UTC
Description:
Additional page added after pressing undo

Steps to Reproduce:
1. Open the attached file
2. Select the text on page 2 and press backspace
3. CTRL+Z

Actual Results:
New empty page 3

Expected Results:
No empty page 3


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
Version: 7.1.0.0.alpha0+ (x64)
Build ID: c48e4d795e37f23b71d647247590807ab9e52223
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

but not in
6.4
Comment 1 Telesto 2020-07-09 21:37:48 UTC
Created attachment 162866 [details]
Example file
Comment 2 Telesto 2020-07-09 21:38:56 UTC
Created attachment 162867 [details]
Bibisect log

Bisected to:
author	Michael Stahl <Michael.Stahl@cib.de>	2019-12-20 17:28:55 +0100
committer	Michael Stahl <michael.stahl@cib.de>	2019-12-23 10:04:57 +0100
commit 68a5afaaabd0c75bba3439cfdff90fb75d1cdd3f (patch)
tree 53894979f566e3d913a485be170a45c6e0e7ee10
parent 8723ac4e20eda87a82393f2f6c7d28ece8514238 (diff)
sw: fix widow loop with as-char flys in text formatting
The document has a paragraph with 4 as-character anchored flys depicting
Zirbenholz; due to their size and an additional fly that is anchored at
the paragraph, there are 3 lines that do not fit onto a single page.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=68a5afaaabd0c75bba3439cfdff90fb75d1cdd3f
Comment 3 sora34ce 2020-07-30 02:01:17 UTC
I have no idea how this bug even exists. I know that files can be too big to fit onto a single page, but I believe this is definitely a glitch due to the big file present on Page 3. I've noticed that when highlighted, it occupies a space bigger than the single page it fits in, and that the text on Page 2 has a few spaces after that before the image. I believe that there is something with your image that you might look at, but I should get some clarification.
Comment 4 Telesto 2020-07-30 09:25:37 UTC
(In reply to sora34ce from comment #3)
> I have no idea how this bug even exists. I know that files can be too big to
> fit onto a single page, but I believe this is definitely a glitch due to the
> big file present on Page 3.

True

> I believe that there is  something with your image that you might look at, but I > should get some clarification.

There is technically nothing wrong with doc. It has something to do without rendering. They underlying issue is likely caused by commit identified in bug 133975
Comment 5 Timur 2020-09-18 08:50:04 UTC
Repro 7.1+. I change Importance to Minor because additional page is not there upon reopen. Other similar bugs should be in CC or duplicated. 
Since no repro 6.0, I add CC: Michael.Stahl@cib.de, didn't check bibisect myself.
Comment 6 Xisco Faulí 2021-04-14 19:21:14 UTC
Still reproducible in

Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: a199e4ea389c934d169a178433f4b94033e60f93
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 7 QA Administrators 2023-04-15 03:27:08 UTC Comment hidden (obsolete)
Comment 8 Gabor Kelemen (allotropia) 2023-04-20 11:42:11 UTC
This changed in master:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1e273de12710eabf908495d341311da93701868f
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
Calc: default

Now the text moves to the bottom of the first page after Undo, and the almost empty second page does not come back. Deleting the paragraphs also makes the light blue rectangle on the first page move up a line or so and Undo keeps this. So number of pages is reduced by 1.