Created attachment 166214 [details] file to demonstrate outline position bug This happens when there is a heading in a frame, header or footer and content before the first heading in the document. In this case the Navigator should not have a heading highlighted when the cursor is positioned before the first heading. Steps to repro: 1) Open attached file outlineposbug.odt Cursor is at beginning of document before the word "Title" 2) Open Navigator Menu->View->Navigator (F5) or Menu->View->Sidebar (Ctrl+F5) and select Navigator tab in the tab bar Results: "Chapter 6" is selected in the Navigator content view Headings content section. Expected results: No selection in the Navigator content view.
confirm in Version: 7.2.0.0.alpha0+ (x64) Build ID: ad9e04321df25824d2288a2ef1f4275f070f1cf7 CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win Locale: ru-RU (ru_RU); UI: ru-RU Calc: CL but there is a strange thing: when I press F5 and it showed me a Navigator floating window with selected Headings item, but after docking the Navigator to its place I saw that Chapter 6 item became selected itself >_<
Nice observation of the floating Navigator not tracking the cursor position when initially shown! In certain situations this can also be repro'd using Ctrl+F5 to open the Navigator in the sidebar. The reason for this happening is that the document edit window needs to have focus for Navigator tracking to update. I will include a fix to update tracking on Navigator showing with the fix for this bug report.
Here is a patch for both issues: https://gerrit.libreoffice.org/c/core/+/108492
Jim Raykowski committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/602a044014b55a5a1b1a5f0e96af603590ee899f tdf#137358 Fix incorrect outline position returned It will be available in 7.2.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.