Description: in a document with chapters and sub-chapters, having an index at the beginning of each chapter for those subchapters, the indexes do not update but the first one. that has been working in previous versions (7.3.2.2) Steps to Reproduce: 1. create chapters (heading1), and under each some sub-chapters (heading2) 2. create an index (in my case in a frame, so that i can easily copy it) for heading2 3. place one index directly under each heading1 Actual Results: only first chapter-index gets updated. all other chapter-indexes show only the first sub-chapter Expected Results: all indexes are filled with the appropriate sub-indexes Reproducible: Always User Profile Reset: Yes Additional Info: Version: 7.4.2.2 / LibreOffice Community Build ID: 1726efbecd001a1fe871cba3e00e71283688f34d CPU threads: 4; OS: Linux 5.19; UI render: default; VCL: kf5 (cairo+xcb) Locale: de-CH (en_US.UTF-8); UI: en-US
Created attachment 182958 [details] chapters with indexes
Indeed this seems to work in Version: 7.3.6.2 / LibreOffice Community Build ID: c28ca90fd6e1a19e189fc16c05f8f8924961e12e CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb) Locale: pt-BR (pt_BR.UTF-8); UI: en-US Calc: CL But it does not work in Version: 7.4.1.2 / LibreOffice Community Build ID: 40(Build:2) CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb) Locale: pt-BR (pt_BR.UTF-8); UI: en-US Ubuntu package version: 1:7.4.1~rc2-0ubuntu0.22.04.1~lo1 Calc: threaded So it's a regression. Up until LO 7.3.6 if you right click the second index and select "Update Index", all entries are shown. In LO 7.4.1 this no longer works.
This seems to have begun at the below commit. Adding Cc: to Andreas Heinisch ; Could you possibly take a look at this one? Thanks 62dd4022f1631dc0a2d8b8d3959b21b50ed0a979 is the first bad commit commit 62dd4022f1631dc0a2d8b8d3959b21b50ed0a979 Author: Jenkins Build User <tdf@pollux.tdf> Date: Mon Apr 4 12:51:26 2022 +0200 source 1cac7d18ab8561f129a30d6c93c0f9f1d7868e01 https://git.libreoffice.org/core/+/1cac7d18ab8561f129a30d6c93c0f9f1d7868e01
The problem lies within the anchor of the frame. Currently, the algorithm returns the chapter below the anchor and hence my implementation searches for all subchapters of "sub one" and "another sub one" resulting in just a single index entry "another sub one". Even if you update the first frame it results just in "sub one". If you drag the frame ABOVE a Heading 1, then the index entries show all the expected entries.
Andreas Heinisch committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/ba58fc11723b7c9d370d6407385ea0e8829db099 tdf#151462 - Search for outline node containing the current node It will be available in 7.5.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Andreas Heinisch committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/483afea3a99b928d0e1cb1df0415a06269067559 tdf#151462 - Search for outline node containing the current node It will be available in 7.5.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Andreas Heinisch committed a patch related to this issue. It has been pushed to "libreoffice-7-4": https://git.libreoffice.org/core/commit/c54b8c442473c59deacc89de4c1a13e108993063 tdf#151462 - Search for outline node containing the current node It will be available in 7.4.3. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Andreas Heinisch committed a patch related to this issue. It has been pushed to "libreoffice-7-4": https://git.libreoffice.org/core/commit/fab66b3f912462527adfb06870cd52d087485c74 tdf#151462 - Search for outline node containing the current node It will be available in 7.4.3. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.