Bug 144409 - Conditional style not applied or displayed
Summary: Conditional style not applied or displayed
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Writer-Styles-Paragraph
  Show dependency treegraph
 
Reported: 2021-09-09 12:44 UTC by phv
Modified: 2022-09-26 06:31 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Testcase document (12.46 KB, application/vnd.oasis.opendocument.text)
2021-09-09 12:48 UTC, phv
Details
Comparaison between version 6.4.4.0 and version 7.2.0.4 (554.44 KB, image/jpeg)
2021-09-09 12:49 UTC, phv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description phv 2021-09-09 12:44:58 UTC
Description:
Conditional style feature seems to be broken in version 7.2 as the chosen style is not applied either inside Table, Frame or Header (I didn't test every context).

The feature is working in LibreOffice 6.4.0.0.beta1.

Steps to Reproduce:
1. Define a new style (example: Style applied).
2. Create a new conditional style (example: Conditional Style) and choose table and frame for contexts, select the previous style as style applied.
3. Insert a table and a frame and write some text in both.
4. Apply the conditional style for both paragraphs.

Actual Results:
The paragraph style is not changed in both the table and the frame.

Expected Results:
The new style should be applied in both the table and the frame.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.2.0.4 (x64) / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-US (fr_FR); UI: en-US
Calc: threaded
Comment 1 phv 2021-09-09 12:48:15 UTC
Created attachment 174926 [details]
Testcase document
Comment 2 phv 2021-09-09 12:49:44 UTC
Created attachment 174927 [details]
Comparaison between version 6.4.4.0 and version 7.2.0.4
Comment 3 Dieter 2021-09-25 04:47:40 UTC
I confirm it with

Version: 7.2.1.2 (x64) / LibreOffice Community
Build ID: 87b77fad49947c1441b67c559c339af8f3517e22
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
Comment 4 raal 2021-09-25 13:29:56 UTC
This seems to have begun at the below commit.
Adding Cc: to Bjoern Michaelsen; Could you possibly take a look at this one?
Thanks

linux-64-7.1 3adb4413a5bfed8efbac8039cd0d7cb4aa712e05 is the first bad commit
commit 3adb4413a5bfed8efbac8039cd0d7cb4aa712e05
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Tue Nov 3 00:56:24 2020 +0100

    source 5f9650e54247f1c27749ad4e4268aae69dabd47e

https://gerrit.libreoffice.org/c/core/+/105195
  move SwCondCollCondChg on top of SfxHint
Comment 5 Björn Michaelsen 2022-09-25 01:30:57 UTC
(In reply to phv from comment #1)
> Created attachment 174926 [details]
> Testcase document

This testcase renders the text in the table in red on current master. What is needed to reproduce this?
Comment 6 Dieter 2022-09-26 06:31:40 UTC
(In reply to Björn Michaelsen from comment #5)
> This testcase renders the text in the table in red on current master. What
> is needed to reproduce this?


1. Insert a table and some text
2. Apply PS "Example: Conditional Style"

Actual result:
PS dropdown menu shows "Example: Conditional Style" and style inspector PS "Example: Applied Style". This would explain, why text is red

Expected result:
PS is "Example: Conditional Style" also in navigator.