Bug 120921 - Function “Navigate By” does not Work Correctly if Cursor is Located in Header or Footer
Summary: Function “Navigate By” does not Work Correctly if Cursor is Located in Heade...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Navigate-By
  Show dependency treegraph
 
Reported: 2018-10-25 21:21 UTC by Harald Koester
Modified: 2025-10-25 16:50 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file with instructions in order to reproduce the bug (13.64 KB, application/vnd.oasis.opendocument.text)
2018-10-25 21:21 UTC, Harald Koester
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Koester 2018-10-25 21:21:51 UTC
Created attachment 146017 [details]
Example file with instructions in order to reproduce the bug

In order to reproduce the bug open the attached document and follow the instructions inside the document.

With version 6.0.6 the behaviour is different but also buggy.

The Navigate By function already exists in version 3.3.0. But how to seize this function has been changed during the different versions. This bug already exists in version 3.3.0. Thus inherited from OOo.
Comment 1 Dieter 2018-10-26 08:32:30 UTC
I confirm this with

Version: 6.2.0.0.alpha1+ (x64)
Build ID: 8274c4c62df5b937b3f0bec9e1eeca85f3b219d4
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-10-22_01:47:50
Locale: en-US (de_DE); Calc: CL
Comment 2 Dieter 2018-10-26 09:22:49 UTC
Jim, perhaps you are interestred in this bug, because you've fixed other bugs for Navigate-By funtion

cc: Jim Raykowski
Comment 3 QA Administrators 2019-10-27 03:37:56 UTC Comment hidden (obsolete)
Comment 4 Jim Raykowski 2019-10-27 07:16:37 UTC
Sorry, I didn't see I was added to this one until after receiving the untouched bug notification.

Maybe this bug is caused by how outline nodes are organized in document model. Notice in the Navigator Headings are listed in the following order:

Header Heading
Footer Heading
Heading 1
Heading 2
Heading 3

SwCursorShell::GotoNextOutline() and SwCursorShell::GotoPrevOutline() are places to start to look for a solution. These both lead to SwCursor::IsSelOvr which to me looks challenging.
Comment 5 Dieter 2021-09-06 18:35:57 UTC
Behaviour still the same in

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 74d35e143d557a7e65c4443f5b80cb9d406b1fa1
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

but now I think it is the regular search order of LO
1. Text area
2. Footnote
3. Header and Footer

So I think it's logic, that the "Navigate By" feature follows that search order. So for me NAB (if we don't want to change the search order in a document)
Comment 6 QA Administrators 2023-10-12 03:17:09 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2025-10-12 03:12:33 UTC Comment hidden (obsolete)
Comment 8 Dieter 2025-10-25 16:50:23 UTC
(In reply to Dieter from comment #5)
> So I think it's logic, that the "Navigate By" feature follows that search
> order. So for me NAB (if we don't want to change the search order in a
> document)

Still the same with
Version: 25.8.2.2 (X86_64)
Build ID: d401f2107ccab8f924a8e2df40f573aab7605b6f
CPU threads: 12; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

And I still think, it's the intended behaviour. Perhaps it's a lack of documentation about the sea search order of the search tool. But that would be a diferent bug.
=> RESOLVED NOTABUG