Bug 130567 - Find & Replace does not find font color applied in a character style
Summary: Find & Replace does not find font color applied in a character style
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.3.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-10 17:08 UTC by sdc.blanco
Modified: 2020-02-11 00:08 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sdc.blanco 2020-02-10 17:08:58 UTC
1. Copy these instructions into a document.
2. Select the first line.  Use Format > Character – Font color  (and choose a color)
3. Make a new character style with same font color  (F11, Character Styles, right-click on Default Style, new)
4. Apply the new character style to the second line.
5. Find & Replace (ctrl-H)  - Format   (use Font Effects tab – Font color - choose same color)
6. Find Next (ad libitum)

Actual result:    Only finds characters with direct color formatting
Expected result:  Finds all characters that have “font color” (whether from direct formatting or character style)
Comment 1 V Stuart Foote 2020-02-10 22:36:19 UTC
@Seth, 

WFM when I check the 'Including Styles' from the F&R dialog. 

And looking at a document saved to Flat ODF that looks correct.

Direct Formatting (DF) gets an in line 
<style:text-properties fo:color="#fe007f"...

While the new Character Style gets a defined style
<style:style style:name="newCharStyleName" style:family="text"> with its own
<style:text-properties fo:color="#fe007f"...

with two mechanisims of applying font color, the dialog checkbox excluding or including search values found in the styles, seems correct approach.
Comment 2 sdc.blanco 2020-02-11 00:08:16 UTC
Thanks Stuart.  WFM too (after I used "including styles")  Did not notice that "Paragraph Styles" changed to "Including Styles" (after "format" was set).  
(now I understand how to find my character styles).  

(as casual comment -- of course F&R dialog box is busy, but there is good space under "Attribute" and "Format" buttons and maybe "including styles" should be appearing there (greyed out, until something is set) (and not "hidden" under Paragraph Styles)  (#learning from Heiko)