Bug 146441 - Table of Figures: Wrong on a multi page view
Summary: Table of Figures: Wrong on a multi page view
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: TableofContents-Indexes 130318
  Show dependency treegraph
 
Reported: 2021-12-27 21:07 UTC by Andreas Heinisch
Modified: 2026-01-07 08:50 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Document showing the bug (11.01 KB, application/vnd.oasis.opendocument.text)
2021-12-27 21:07 UTC, Andreas Heinisch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Heinisch 2021-12-27 21:07:21 UTC
Description:
Consider the attached document. You may update the table of figures by right click -> update index, or you may insert a new table of figures index.

Steps to Reproduce:
1. Select multiple-page view on the bottom of the page
2. Zoom out so that both pages are visible
3. Insert -> ToC and Index -> ToC, Index, Biblio under heading H1
4. Type -> Select Table of Figures
5. For -> Chapter instead of Entire document
6. Click OK 

Actual Results:
Figure 1 is part of the List of Figures but only if the table of figures is locate above the actual figure on page 1.

Expected Results:
Figure 1 should not be part of the List of Figures


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.3.2 (x64) / LibreOffice Community
Build ID: d166454616c1632304285822f9c83ce2e660fd92
CPU threads: 6; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: CL
Comment 1 Andreas Heinisch 2021-12-27 21:07:53 UTC
Created attachment 177162 [details]
Document showing the bug
Comment 2 Andreas Heinisch 2021-12-27 21:11:33 UTC
Code pointer: https://opengrok.libreoffice.org/xref/core/sw/source/core/docnode/node.cxx?r=9d3b6364&mo=27449&fi=773#813

On a single page view it works.
Comment 3 Emanuele Gissi 2021-12-28 11:30:47 UTC
I confirm the bug in:
Version: 7.2.4.1
Build ID: 20(Build:1)
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: it-IT (it_IT.UTF-8); UI: it-IT
Calc: threaded
Comment 4 sdc.blanco 2021-12-28 12:16:01 UTC
Confirm that problem appears in "multiple-page view" but not in "single-page view"

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: e63fe68fb1d0915b64fdf63f7fa6eed866fa3a0d
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-US (en_DK); UI: en-US
Calc: CL
Comment 5 Telesto 2021-12-28 13:04:22 UTC
Also in
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 6 Heiko Tietze 2022-01-06 07:55:07 UTC
Miklos, do you have an advice here? I'd love to see bug 130318 implemented (ToC everywhere) but Andreas considers this issue as a blocker.
Comment 7 Miklos Vajna 2022-01-06 09:24:41 UTC
No idea off the top of my head, unfortunately I see the single page view ~all the time.
Comment 8 Andreas Heinisch 2022-01-06 09:28:27 UTC
So for the single page view it works, but just in the top case. Is there a possibility to check if a figure index is contained or before the next outline node? My approach does not seem to work in the patch (searching my chapter node and going down till I find one with greater index, and then checking if the frame lies within): https://gerrit.libreoffice.org/c/core/+/125727/6/sw/source/core/doc/doctxm.cxx#774

Thank you
Comment 9 QA Administrators 2024-01-07 03:12:58 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2026-01-07 03:11:44 UTC Comment hidden (obsolete)
Comment 11 Andreas Heinisch 2026-01-07 08:50:17 UTC
Still in:
Version: 26.8.0.0.alpha0+ (X86_64)
Build ID: c0b14ab9aa4d713a6b718ef07b9e0379b88e97d3
CPU threads: 12; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: CL threaded