Bug 68320 - Impress <count> behaves oddly when printing handouts with and without hidden slides
Summary: Impress <count> behaves oddly when printing handouts with and without hidden ...
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: Other All
: medium normal
Assignee: Andreas Heinisch
URL:
Whiteboard: target:26.2.0 target:25.8.4
Keywords:
Depends on:
Blocks: Print-Dialog Handout-View
  Show dependency treegraph
 
Reported: 2013-08-20 09:46 UTC by Tiiti Kellomaki
Modified: 2025-11-28 18:35 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
nbpage.odp (with hidden slide) (11.79 KB, application/vnd.oasis.opendocument.presentation)
2014-06-07 15:58 UTC, pierre-yves samyn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tiiti Kellomaki 2013-08-20 09:46:55 UTC
I have an Impress presentation with 10 slides. Handout master contains "<number>/<count>" (Page number / Page count) which is supposed to give page numbering on the handouts: 1/2, 2/2. Works fine so far. I'm using 6 slides per page on the handout.

When I hide slides 1-5 and print a handout (or select "Range and copies" -> "Slides 6-10" in the Print dialog), I expect to have one page of handout, thus numbered 1/1. Instead, I'm getting one page numbered 1/2. So the <count> is calculating the hidden (or not selected) slides though they will not be printed. Seems to work equally with 1 or 4 slides per handout.

Please either change the <count> to include only the slides to be printed, or change its name to "Total page count" instead of "Page count". At least to me, "Page count" means "the number of paper sheets that will come out from the printer."
Comment 1 pierre-yves samyn 2014-06-07 15:57:06 UTC
Hi

I reproduce on windows 7/64 & 4.3.0.0.beta1

Also reproduced with Version: 4.3.0.0.beta2
Build ID: a06aa316117a6ff0f05c697c82831c227812d810

I set status to New.

The fix for bug 74383 solved the problem of "page count" when hidden slides but as stated in the Bug 74383, comment 8 inconsistent with the page number persists

See the nbpage.odp attached

Regards
Pierre-Yves
Comment 2 pierre-yves samyn 2014-06-07 15:58:00 UTC
Created attachment 100612 [details]
nbpage.odp (with hidden slide)
Comment 3 QA Administrators 2016-02-21 08:35:35 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2017-03-06 15:18:31 UTC Comment hidden (obsolete)
Comment 5 Samuel Thibault 2017-04-29 18:49:46 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2018-09-25 02:51:16 UTC Comment hidden (obsolete)
Comment 7 Samuel Thibault 2018-10-07 18:57:28 UTC
Hello,

I can confirm the issue is still there in master, tested with 

Version: 6.2.0.0.alpha0+
Build ID: 6dacf9ec5455bdad82e78470a1a7cb6d2271bec7
Comment 8 Timur 2020-09-28 09:10:53 UTC
Repro 7.1+ for printing handouts with and without hidden slides.
Steps: 
1. open ODP attachment 100612 [details] with hidden slide 2
2. File-Print-Impress-Type: Handouts 
3a. include hidden pages
3b. exclude hidden pages

Experienced a: 4 slides, 1/3 up to 4/3
Expected a: 4 slides, 1/4 up to 4/4

Experienced b: 3 slides, 1/3, 3/3, 4/3
Expected b: 3 slides, 1/3 up to 3/3
Comment 9 QA Administrators 2022-09-29 03:55:36 UTC Comment hidden (obsolete)
Comment 10 edera 2022-11-22 20:34:55 UTC
Still there in 7.3.6.2
Comment 11 QA Administrators 2024-11-22 03:15:28 UTC Comment hidden (obsolete)
Comment 12 Andreas Heinisch 2025-11-07 10:15:56 UTC
(In reply to Timur from comment #8)
> Repro 7.1+ for printing handouts with and without hidden slides.
> Steps: 
> 1. open ODP attachment 100612 [details] with hidden slide 2
> 2. File-Print-Impress-Type: Handouts 
> 3a. include hidden pages
> 3b. exclude hidden pages
> 
> Experienced a: 4 slides, 1/3 up to 4/3
> Expected a: 4 slides, 1/4 up to 4/4

This is clearly an issue and it should be fixed with: https://gerrit.libreoffice.org/c/core/+/193572

> Experienced b: 3 slides, 1/3, 3/3, 4/3
> Expected b: 3 slides, 1/3 up to 3/3

In this context I am not sure if this should be really the case. With the above patch you now get 3 slides, 1/4, 3/4, 4/4
Imho, like bug 153259 states, there should be an option to include/exclude hidden pages in the count and current page number field.
Comment 13 Commit Notification 2025-11-11 08:37:59 UTC
Andreas Heinisch committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/968608eb1c65d96b54292d4926cdd0706ce594f4

tdf#68320 - Impress: include/exclude hidden pages in slide count field

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 14 Andreas Heinisch 2025-11-11 08:57:51 UTC
Could not provide a test since all attempts show either the wrong page number or no page number at all. All attempts can be seen in https://gerrit.libreoffice.org/c/core/+/193572

Imho, we should close this bug since bug 115288 covers the other aspect of the test case:
> Experienced b: 3 slides, 1/3, 3/3, 4/3
> Expected b: 3 slides, 1/3 up to 3/3

If you may disagree, feel free to reopen the bug :)
Comment 15 Commit Notification 2025-11-13 10:02:34 UTC
Andreas Heinisch committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/8382087c0ca18938f308f25b1d1eda85e024fe07

tdf#68320 - Impress: include/exclude hidden pages in slide count field

It will be available in 25.8.4.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 16 Commit Notification 2025-11-14 07:32:04 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/cd65c4c3bc78d95d45cbbc4c2959697dbaa66e80

tdf#68320: sd_uiimpress: Add test

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 17 Andreas Heinisch 2025-11-14 08:01:53 UTC
Thank you very much Xisco!
Comment 18 BogdanB 2025-11-28 18:34:13 UTC
I verified, this bug is solved.
Version: 26.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: f8224b9625c26a7c92a289573765d4a201678d68
CPU threads: 16; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Just a side effect:
The only problem is that when you want to show someone this as a slideshow, or anyway, when going one by one, it will see 1/4, 3/4, and 4/4. Where is 2/4? 

But especially in a presentantion this could be a problem, for those checking the number of slides. You hidded maybe for the moment, for this moment only, but you want the numbers to be real, true. I want to show 3 slides, I number them as 1/3, 2/3, 3/3.
Comment 19 BogdanB 2025-11-28 18:35:51 UTC
Ok, I have seen now the other bug here:
https://bugs.documentfoundation.org/show_bug.cgi?id=153259
Sorry.