Bug 169067 - Page Break changes after save/reload
Summary: Page Break changes after save/reload
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-25 22:24 UTC by Jim Avera
Modified: 2025-11-17 18:29 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
demo.ods (41.63 KB, application/vnd.oasis.opendocument.spreadsheet)
2025-10-25 22:25 UTC, Jim Avera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Avera 2025-10-25 22:24:43 UTC
Description:
If the font size in a spreadsheet is adjusted to make all rows barely fit on a single page, as shown by the View->Page Break display, then if the spreadsheet is saved and reloaded, the page break falls at a different place (the last row then falls onto a second printed page).

Steps to Reproduce:
1. Load the attached demo.ods
2. View->Page Break
(notice that the last two rows do not fit)
3. View->Styles (or hit F11, or click the Styles icon on the right edge)
   UN-check "Show previews"

4. Put mouse on "Default"; rightclick->Edit Style...

5. In the "Font" screen, change Size from 14pt to 13.5 pg; click OK
(notice that all rows now fit on the same page according to the Page Break preview)

6. File->Save
7. File->Reload

Actual Results:
The last row no longer fits on the first page

Expected Results:
Formatting (including exact sizes and row heights) should not change; all rows should still fit on the first page


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 3b0ea28e061f9335b907ae8febfadf8fc04c599b
CPU threads: 12; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Jim Avera 2025-10-25 22:25:06 UTC
Created attachment 203543 [details]
demo.ods
Comment 2 tkakar 2025-11-13 04:55:56 UTC
Confirmed. After adjusting the font size to 13.5 pt to fit all rows on one page (using the page break preview to confirm), saving and reloading the file causes then causes the last row to no longer fit on one page. 

Tested in:

Version: 25.8.2.2 (X86_64)
Build ID: d401f2107ccab8f924a8e2df40f573aab7605b6f
CPU threads: 16; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 620(Build:0)
CPU threads: 16; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 3 Buovjaga 2025-11-17 18:29:46 UTC
At least with the example file, reproduced already in oldest of Linux 43all repo.