https://bugs.documentfoundation.org/show_bug.cgi?id=168556
Piotr Osada <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #4 from Piotr Osada <[email protected]> --- Created attachment 205331 --> https://bugs.documentfoundation.org/attachment.cgi?id=205331&action=edit "Up to level" setting not honored for Heading references Confirmed: The chapter field does not respect the configured outline level: The heading field reference returns deeper outline levels when the requested level doesn't exist, instead of returning void. Steps to reproduce: 1. Create a new Writer document 2. Apply "Heading 3" style to the first paragraph (without any preceding Heading 1 or Heading 2) 3. Add some Heading 2, then Heading 1, then normal outline structure below 4. Insert → Header and Footer → Header → Default Style 5. In the header, Insert → Field → More Fields → Document tab 6. Select Type: "Heading", Format: "Heading number and contents", set "Up to level" to 1 7. Click Insert, then Close Actual result: The header displays "1.1.1 Heading label" (outline level: 3) Expected result: The header should be blank (void) because: - Level 1 does not exist at this point - Level 2 does not exist at this point - Fallback should stop here, not scan deeper levels "Up to level" should define a ceiling, not trigger a search into deeper levels. Search up (shallower), not down (deeper). Return blank if no level found. Version: 25.8.5.1 (X86_64) Build ID: cde5f182e321816108385dd3739c4295be919062 CPU threads: 16; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Raster; VCL: win Locale: en-AU (pl_PL); UI: en-US Calc: CL threaded -- You are receiving this mail because: You are the assignee for the bug.
