Bug 146958 - Inconsistent page count in properties dialogue and status line
Summary: Inconsistent page count in properties dialogue and status line
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.4.2 release
Hardware: x86-64 (AMD64) Windows (All)
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-24 11:45 UTC by Albrecht Müller
Modified: 2022-07-19 09:46 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
Screenshot that shows different page counts in properties dialogue and status line (36.56 KB, image/png)
2022-01-24 11:45 UTC, Albrecht Müller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Albrecht Müller 2022-01-24 11:45:51 UTC
Created attachment 177741 [details]
Screenshot that shows different page counts in properties dialogue and status line

In a large document the page count shown in the properties dialogue and in the status line are different (1202 vs. 1191). Expected behaviour: The number should be the same.

This may be related to bug 98698 and bug 136245 as the behaviour documented there sounds familiar to me.
Comment 1 Timur 2022-01-24 12:11:34 UTC
Did you forget to include the document, or a link to existing attachment 123?
Comment 2 Albrecht Müller 2022-01-30 18:58:00 UTC
(In reply to Timur from comment #1)
> Did you forget to include the document, or a link to existing attachment 123?

In short: No.

Long version:

The tip of an iceberg may look minor but the whole thing was able to sink the Titanic. I uploaded the screenshot as I suspect that the innocent looking discrepancy in the page count may point to a deeper problem: Writer seems to use at least two different ways to calculate the total number of pages which sometimes produce different results. This may be the cause of a couple of strange effects related to pagination, including but not limited to Bug 98698. Interestingly this report contains attachment 169503 [details] (erratic page count) which shows essentially the same effect I observe.

My screenshot is based on a document containing my collection of notes that helps me to get along with LibreOffice problems I encountered. I don't intend to upload it for the following reasons:

1) I would have to check more than 1000 pages for personal information I do not want to disclose.
2) Same for content that might infringe copyrights.
3) Last but not least: I don't want to give away the result of hundreds of working hours for free.
Comment 3 raal 2022-07-18 20:45:45 UTC
Tested both documents from bug 98698 and cannot reproduce. Number of pages in bottom bar and file properties is not different.

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 28daee8a3252e03a67484dc8d3dd26fd73af4826
CPU threads: 4; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 4 Timur 2022-07-19 09:46:13 UTC
Needinfo for precise steps with sample document. 
You may replace all chars with X to anonymize.