Bug 146627 - Special field in "outline 1" doesn't display anything
Summary: Special field in "outline 1" doesn't display anything
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.4.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-06 22:16 UTC by Nucleos
Modified: 2022-01-21 12:13 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
very simple file (9.44 KB, application/vnd.oasis.opendocument.text)
2022-01-06 22:16 UTC, Nucleos
Details
Special field in outline does not display chapter name (8.63 KB, application/vnd.oasis.opendocument.text)
2022-01-20 10:46 UTC, Nucleos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nucleos 2022-01-06 22:16:17 UTC
Description:
In my file, special field appears only on first page.

Steps to Reproduce:
1. Open my file
2. Try to use the "Chapter" field outside of first page

Actual Results:
It doesn't work

-- I testes it also on 7.2.2.2 on Windows.

Expected Results:
It should work.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.1.8.1 / LibreOffice Community
Build ID: 10(Build:1)
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: fr-FR (en_US.UTF-8); UI: en-US
7.1.8-3
Calc: threaded
Comment 1 Nucleos 2022-01-06 22:16:56 UTC
Created attachment 177362 [details]
very simple file
Comment 2 Nucleos 2022-01-06 22:23:31 UTC
The bug is also valid on 7.2.4.1

Version: 7.2.4.1 / LibreOffice Community
Build ID: 20(Build:1)
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: fr-FR (en_US.UTF-8); UI: en-US
7.2.4-3
Calc: threaded
Comment 3 Dieter 2022-01-11 20:21:44 UTC
That#s not a bug. Paragraphs on second page have "outline 1" as direct formatting. So header on second page takes content of first paragraph as chapter name and therefor it is empty. If you select paragraphs on second page and clear direct formatting (Ctrl+m) header gets the expecte result.

=> RESOLVED NOTABUG
Comment 4 Nucleos 2022-01-20 10:45:47 UTC
Hello!

Thanks to you I better understand the bug I experienced.

Steps to reproduce:
* New Writer document
* Add a Header 1 title
* On the next line, Format > Paragraph > Outline & List > Outline Level > Level 1
* On this very line, Insert Special field "Chapter name"

The special field is empty.

To my eyes it is a bug. If not a bug, it is very much incomprehensible to my untrained eyes. I attach another simple file where I did exactly the steps.
Comment 5 Nucleos 2022-01-20 10:46:57 UTC
Created attachment 177667 [details]
Special field in outline does not display chapter name
Comment 6 Dieter 2022-01-20 18:03:06 UTC
(In reply to nucleos from comment #5)
> Created attachment 177667 [details]
> Special field in outline does not display chapter name

It really took some time, but finally I could find out, what's going on. Paragraph with field inside is also set to outline level one. Outline level in first paragraph is greyd out. So field take chapter name from the second paragraph. Since this is empty, filed is empty to. Just type something in secon paragraph and see the result.
I think the problem appears, if you assign same outline level to paragraphs with different styles, but I'm not sure here. Perhaps LO shouldn't allow this to avoid problems. But this would be different bug report.
Comment 7 Nucleos 2022-01-21 12:13:47 UTC
Hello, thanks a lot for the explanation Dieter, and the time you gave.

I filed another bug, hopefully with better terms: https://bugs.documentfoundation.org/show_bug.cgi?id=146892 (I'm sorry I'm not too technical!)