Bug 151783 - Conditions in paragraph style won't work for numbering levels.
Summary: Conditions in paragraph style won't work for numbering levels.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.7.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression
Depends on:
Blocks: Writer-Styles-Paragraph
  Show dependency treegraph
 
Reported: 2022-10-27 10:42 UTC by Robert Großkopf
Modified: 2023-05-06 14:36 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Numbering with conditional formatted paragraph style will be shown right in LO 5.1 - see *.pdf-file. (51.50 KB, application/pdf)
2022-10-27 10:42 UTC, Robert Großkopf
Details
Document for testing - is shown right in LO 5.1, fails since LO 5.2 (65.19 KB, application/vnd.oasis.opendocument.text)
2022-10-27 10:43 UTC, Robert Großkopf
Details
Shows styles in numbering are not assigned but visible in the styles window. (232.05 KB, image/png)
2022-10-27 15:17 UTC, Richard Kraut
Details
Shows if you assign the format manually from the styles it works. (227.29 KB, image/png)
2022-10-27 15:22 UTC, Richard Kraut
Details
Format of the paragraphs is still there after manual assignment, saving and reopening. (82.00 KB, application/vnd.oasis.opendocument.text)
2022-10-27 15:50 UTC, Richard Kraut
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Großkopf 2022-10-27 10:42:07 UTC
Created attachment 183288 [details]
Numbering with conditional formatted paragraph style will be shown right in LO 5.1 - see *.pdf-file.

Open the attached *.pdf-file.
This will show how conditional formatting for paragraphs should work.
Condition in paragraph "Text Body" is set for first, second and third numbering level to different paragraphs (Numbering 1, Numbering 2 and Numbering 3), where different font height has been defined.

With LO 5.1.5.2 it will work right:
"Text Body" has been choosen.
Numbering has been turned on.
Font will show the height of "Numbering 1".
Numbering has been demoted one level.
Font will show the height of "Numbering 2". …

With LO 5.2.7.2 (only version of 5.2 I have installed it fails. Font will always be 12 pt. Also the styles "Numbering 1", "Numbering 2" and "Numbering 3" won't be shown in "Applied Styles".

Same buggy behavior appears in 
Version: 7.4.2.3 / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 6; OS: Linux 5.3; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded
Comment 1 Robert Großkopf 2022-10-27 10:43:08 UTC
Created attachment 183289 [details]
Document for testing - is shown right in LO 5.1, fails since LO 5.2
Comment 2 Richard Kraut 2022-10-27 15:17:19 UTC
Created attachment 183298 [details]
Shows styles in numbering are not assigned but visible in the styles window.
Comment 3 Richard Kraut 2022-10-27 15:22:11 UTC
Created attachment 183299 [details]
Shows if you assign the format manually from the styles it works.
Comment 4 Richard Kraut 2022-10-27 15:48:15 UTC
I can confirm the bug. But it is a little bit different from Roberts one.

On Roberts system you do not see the formatted numbering in 'Styles and Formatting' on LibreOffice 5.2.7 and it is not applied to the paragraphs.

I've tested Roberts Writer document from the attachments with LibreOffice 7.4.1 installed on my Linux machine.
Here the formatting is still not applied to the paragraphs but you are able to see the numbering (for Numbering 1, Numbering 2 and Numbering 3) in 'Styles' under "Default Paragraph Style -> Text Body -> List".

As a workaround, you can select the desired paragraph and do a doubleclick on the appropriate numbering entry in styles. Then the format is applied to the paragraph.
After saving, closing and reopening the document, the format is still there.

Version: 7.4.1.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 32; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: en-US
Debian package version: 1:7.4.1-1~bpo11+2
Calc: CL
Comment 5 Richard Kraut 2022-10-27 15:50:28 UTC
Created attachment 183300 [details]
Format of the paragraphs is still there after manual assignment, saving and reopening.
Comment 6 Robert Großkopf 2022-10-27 18:34:25 UTC
(In reply to Richard Kraut from comment #2)
> Created attachment 183298 [details]
> Shows styles in numbering are not assigned but visible in the styles window.

You have set Styles to "Hierarchical", not to "Applied Styles". So you will see all styles which are available. "Applied Styles" will show the styles, which are part of the text I have been writing in the document.

Bug is the condition formatting isn't working well for bullets and numbering. It has nothing to do with setting separate styles to every paragraph.
Comment 7 Richard Kraut 2022-10-27 23:12:29 UTC
(In reply to Robert Großkopf from comment #6)

> You have set Styles to "Hierarchical", not to "Applied Styles". So you will
> see all styles which are available. "Applied Styles" will show the styles,
> which are part of the text I have been writing in the document.

You're right. My mistake.