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
Created attachment 96463 [details] the document, but with replaced characters because I think it's not available for the public
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?
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.
Thanks for your fast feedback and update on this.