Bug 168656 - [PRINTING] Content width calculation ignores cell formatting
Summary: [PRINTING] Content width calculation ignores cell formatting
Status: RESOLVED DUPLICATE of bug 57257
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-02 08:45 UTC by Magnus Jacobsen
Modified: 2025-10-02 14:38 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example spreadsheet with the issue (11.35 KB, application/vnd.oasis.opendocument.spreadsheet)
2025-10-02 08:45 UTC, Magnus Jacobsen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Jacobsen 2025-10-02 08:45:31 UTC
Created attachment 203101 [details]
Example spreadsheet with the issue

Problem: For printing, cell content width calculation does not consider cell formatting, resulting in extra blank pages printed, even when "Suppress output of empty pages".

Reproduce:
1. Create new blank spreadsheet.
2. Enable View > Page Break.
3. Enter content in cell A1 that forces Page 1 and Page 2 to be shown.
4. Format cell A1 with Alignment > Properties > Shrink to fit cell size

Expected: Only Page 1 shown.
Actual: Both Page 1 and Page 2 still shown

LibreOffice version: 25.8.1 (X86_64),
build: 54047653041915e595ad4e45cccea684809c77b5
Windows 11 (build 26100)
User interface: UI render: Skia/Vulkan; VCL: win
Comment 1 m_a_riosv 2025-10-02 14:38:18 UTC

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