Bug 76693 - FILEOPEN: Open docx leads to wrong page numbers in table of contents
Summary: FILEOPEN: Open docx leads to wrong page numbers in table of contents
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.2.1 release
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-27 14:33 UTC by bugzilla
Modified: 2014-04-01 09:26 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Screenshot that compares the TOC of a document in LO 4.2 and MS Word 2010 (102.13 KB, image/png)
2014-03-27 14:33 UTC, bugzilla
Details
the document, but with replaced characters because I think it's not available for the public (1.08 MB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2014-03-27 14:49 UTC, bugzilla
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugzilla 2014-03-27 14:33:37 UTC
Created attachment 96459 [details]
Screenshot that compares the TOC of a document in LO 4.2 and MS Word 2010

Problem description: We have an example docx that has wrong page numbers in TOC when we open it in LibreOffice Writer.

Steps to reproduce:
1. Open docx in LO 4.2 Writer
2. Scroll to table of contents
3. Check page numbers
4. Repeat in MS Word 2010

Current behavior: The page numbers in LibreOffice are wrong. See the comparison image attached to this bug.
It does not matter if the page numbers in the TOC are up to date in the original document or not. In both cases, they are wrong in LO.

Expected behavior: correct page numbers

              
Operating System: Windows 7
Version: 4.2.2.1 release
Comment 1 bugzilla 2014-03-27 14:49:19 UTC
Created attachment 96463 [details]
the document, but with replaced characters because I think it's not available for the public
Comment 2 retired 2014-03-28 12:03:39 UTC
From what I can see, this looks right in the latest LO nightly. Could you please test that: http://dev-builds.libreoffice.org/daily/master/ and report back if this behaves correctly?
Comment 3 bugzilla 2014-04-01 07:02:56 UTC
We re-tested the issue with:
Version: 4.3.0.0.alpha0+
Build ID: c66229bfa4284758b787bf80ddd1b2e3795881df
TinderBox: Win-x86@42, Branch:master, Time: 2014-03-17_07:15:58

I can confirm that the problem with the page numbers has vanished. We tested the same document again, and the pages were correct, no matter if the TOC was outdated or refreshed or created from scratch.
Comment 4 retired 2014-04-01 09:26:59 UTC
Thanks for your fast feedback and update on this.