Bug 70595 - Other: Table of Contents displays wrong numbers in Web Layout view
Summary: Other: Table of Contents displays wrong numbers in Web Layout view
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1.2.3 release
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks: Writer-Web-Layout
  Show dependency treegraph
 
Reported: 2013-10-18 03:56 UTC by cdrini
Modified: 2016-10-17 22:38 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cdrini 2013-10-18 03:56:04 UTC
Problem description: Table of contents displays wrong numbers in web layout view and also inserts temporary breaks.

Steps to reproduce:
1. Create a new document
2. Enter Web Layout (View > Web Layout)
3. Create some heading ON THE SECOND LINE (leave the first line blank)
4. Paste some random text under the heading (perhaps 2 paragraphs.
5. Create another heading after this text
6. Resize the window until you can no longer see the other heading
7. Click on the empty first line, and add a table of contents (TOC) (Insert > Indexes and Tables > Indexes and Tables -> Press Ok)

Current behavior: The TOC says the last heading is on page 2. Scrolling down, you see that a sort of page-break has been added just before that heading.
Updating the TOC will change it to page 1, regardless of what page the other heading would actually be on.
Expected behavior: It should display the correct page numbers regardless of what view I'm in.
              
Operating System: Windows 8
Version: 4.1.2.3 release
Comment 1 Jean-Baptiste Faure 2013-11-24 10:52:25 UTC
Not reproducible for me with version 4.1.4.0.0+ under Linux/Ubuntu 64 bits.

That said the concept of page number does not make sense in the case of web layout view. Indeed in that case you have only one page, unless your document is very long. I guess each page in web layout view has 64K lines or something like that. And the number of lines depends on the window width and the zoom factor.

So closing as WorksForMe.

Best regards. JBF