Bug 152371 - Hidden cells create a new empty page
Summary: Hidden cells create a new empty page
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: All All
: medium trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Cell-Sheet-Protection
  Show dependency treegraph
 
Reported: 2022-12-04 17:46 UTC by Robert Ombuzal
Modified: 2023-05-13 18:58 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Hidden a cell on Page TWO (8.27 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-01-12 17:17 UTC, Robert Ombuzal
Details
First page with normal cell, second page empty (hidden cell), third page with normal cell (8.94 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-01-13 17:38 UTC, Robert Großkopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Ombuzal 2022-12-04 17:46:00 UTC
Description:
I have two pages and the second page has just one protected+hidden cell.
The cell is only visible on screen, not in the PrintOut/Preview.
When i look at PrintPreview or actually print it i get empty pages.


Steps to Reproduce:
1. create a new document
2. enter text in a cell on page 2
3. activate cell protection, do not print

Actual Results:
Preview/PrintOut prints an empty page 2

Expected Results:
Page 2 is empty so should not be printed at all


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.4.2.3 / LibreOffice Community
Build ID: 40(Build:3)
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: qt5 (qfont+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Ubuntu package version: 1:7.4.2~rc3-0ubuntu0.20.04.1~lo1
Calc: threaded
Comment 1 m_a_riosv 2022-12-04 21:53:14 UTC
Please attach a sample file, I think there is a other way to test what happens.
Comment 2 Robert Ombuzal 2023-01-12 17:17:45 UTC
Created attachment 184619 [details]
Hidden a cell on Page TWO

Hidden a cell on Page TWO, Print Preview prints two pages.
Comment 3 m_a_riosv 2023-01-12 22:59:32 UTC
With your sample file, I can only view one page, on Print preview/Print.
Version: 7.4.4.2 (x64) / LibreOffice Community
Build ID: 85569322deea74ec9134968a29af2df5663baa21
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL

And the 'Menu/Tools/Options/LibreOffice Calc/Print - Pages - Suppress output of empty pages' doesn't change the behavior.
Comment 4 Robert Großkopf 2023-01-13 15:22:38 UTC
Document has set the "Page TWO" on the first page in the attached document. So I couldn't see a second page. If I copy and paste "Page TWO" to the second page (starts here with row 54 (A 54), put it to row 57 (A 57) I could reproduce the bug: Second empty page will be shown.
Suppressing to print empty pages is set by default and doesn't change the behavior.

Bug appears here with LO 7.4.4.2, also LO 7.5.0.1. It will also appear in every LO 7-version, also tested with LO 6.4.7.2

Tested with OpenSUSE 15.3 64bit rpm Linux.
Comment 5 m_a_riosv 2023-01-13 17:02:29 UTC
(In reply to Robert Großkopf from comment #4)
> ...
But looks to me, that the issue it's with the option
Menu/Tools/Options/LibreOffice Calc/Print - Pages - Suppress output of empty pages
not working properly when enabled, and hidden cells makes a blank page.

Adding a third page with text a deleting 'Page TWO' text, don't show page two.
Comment 6 Robert Großkopf 2023-01-13 17:38:32 UTC
Created attachment 184641 [details]
First page with normal cell, second page empty (hidden cell), third page with normal cell

There will appear 3 pages here - also the empty page. But the printer is set in the options to suppress empty pages.
Comment 7 Robert Großkopf 2023-01-13 17:41:55 UTC
If I remove the hidden cell the page won't be shown, if suppressing empty pages will be enabled. So hidden cells seems to be like content on the page for printing - but it shouldn't, because it isn't visible.