Bug 143701 - Removing empty last page deletes drawing objects
Summary: Removing empty last page deletes drawing objects
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-03 09:17 UTC by besancon4me
Modified: 2022-07-27 11:52 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Test document containing drawing objects & image (649.94 KB, application/vnd.oasis.opendocument.text)
2021-08-03 09:18 UTC, besancon4me
Details

Note You need to log in before you can comment on or make changes to this bug.
Description besancon4me 2021-08-03 09:17:03 UTC
Description:
Unable to delete an empty page in Writer if the document contains images and drawing objects because the operation removes all the drawing objects as well.

Steps to Reproduce:
Create an empty document. Make multiple pages using Ctrl Enter.  Add at least one image to page 1 and at least 1 drawing object.  Go to the last (empty) page and use backspace to remove the last page. 





Actual Results:
This does not occur 100% of the time but very often all the drawing objects will be deleted along with the paragraph marker.  The only way to restore the objects is to undo the paragraph delete operation.

Expected Results:
The empty page should be removed without deleting other objects in the document.


Reproducible: Sometimes


User Profile Reset: No



Additional Info:
Version: 6.4.7.2  Build ID: 1:6.4.7-0ubuntu0.20.04.1
Comment 1 besancon4me 2021-08-03 09:18:07 UTC
Created attachment 174040 [details]
Test document containing drawing objects & image
Comment 2 Nina_Shtygailo 2021-08-03 10:37:14 UTC
confirm in

Version: 7.1.5.2 (x64) / LibreOffice Community
Build ID: 85f04e9f809797b8199d13c421bd8a2b025d52b5
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-US (ru_RU); UI: en-US
Calc: CL
Comment 3 Timur 2022-07-27 11:37:43 UTC Comment hidden (me-too)
Comment 4 Timur 2022-07-27 11:52:24 UTC
I reproduced like this in 7.5+, for some reason Linux only, GEN and GTK3:
1. Open 2 pages ODT
2. Go to page 2 and press backspace, see 1 page OK
3. Undo, see 2 pages OK
3a. (if clicked here on page 2, no repro, so for bug do not click)
4. press backspace, see just 1 empty page

It is a change, slight improvement in LO 7.3. Previously press backspace would immediately delete all contents. More back up to LO 6.3 press backspace would delete image.