Bug 118576 - Mail merge gives wrong number of pages (twice) on the status bar in the saved and opened document
Summary: Mail merge gives wrong number of pages (twice) on the status bar in the saved...
Status: RESOLVED DUPLICATE of bug 38449
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.0.1 rc
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Mail-Merge
  Show dependency treegraph
 
Reported: 2018-07-06 12:40 UTC by kabilo
Modified: 2018-07-18 08:08 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
wrong page count in odt (9.30 KB, application/vnd.oasis.opendocument.text)
2018-07-16 18:42 UTC, kabilo
Details
wrong page count in docx (4.58 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-07-16 18:43 UTC, kabilo
Details
screenshot (113.33 KB, image/jpeg)
2018-07-16 18:45 UTC, kabilo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kabilo 2018-07-06 12:40:56 UTC
Description:
a double pages count is displayed in an open mailmerge document on taskbar

Actual Results:
 

Expected Results:
create and save the document using mailmerge. When you open this document, it's  visible on taskbar


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Buovjaga 2018-07-16 17:22:42 UTC
So you mean if you have a real number of 5 page, it displays 10 in the status bar?

I tried, but I could not reproduce the problem. Maybe include a minimal test case.

Please attach example documents.
Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the documents.

Arch Linux 64-bit
Version: 6.2.0.0.alpha0+
Build ID: 860a9daf2b45942a4b10ff22d36aa3fe29be19f4
CPU threads: 8; OS: Linux 4.17; UI render: default; VCL: gtk3; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group threaded
Built on July 14th 2018
Comment 2 kabilo 2018-07-16 18:42:26 UTC
Created attachment 143576 [details]
wrong page count in odt
Comment 3 kabilo 2018-07-16 18:43:25 UTC
Created attachment 143577 [details]
wrong page count in docx
Comment 4 kabilo 2018-07-16 18:45:29 UTC
Created attachment 143578 [details]
screenshot
Comment 5 kabilo 2018-07-16 18:49:43 UTC
it's twice -1 . Files are enclosed.
Comment 6 Buovjaga 2018-07-17 10:09:35 UTC
Do you mean the "(page 1)" that is after every page count, when you go beyond page 1? So we see "Page 41 of 41 (page 1)".
Comment 7 kabilo 2018-07-17 10:58:26 UTC
The source database (biblio) has 21 records. Attached files show 41 pages but contains only 21 pages. Only odd page numbers are displayed on taskbar when you browse the file.
Comment 8 Buovjaga 2018-07-17 11:32:14 UTC
(In reply to kabilo from comment #7)
> The source database (biblio) has 21 records. Attached files show 41 pages
> but contains only 21 pages. Only odd page numbers are displayed on taskbar
> when you browse the file.

Damn, I did not notice it. Now I see I could reproduce the problem already in my comment 1.

I will investigate more.
Comment 9 Buovjaga 2018-07-17 11:47:31 UTC
Ah, it is not a bug: Writer assumes every first page is numbered odd

*** This bug has been marked as a duplicate of bug 38449 ***
Comment 10 Buovjaga 2018-07-18 08:08:16 UTC
To get where this is coming from:
1. Hover your mouse over a page break in the document
2. Click the widget and "Edit page break"
3. See how it has "Page number: 1" checked