Description: After applying and un-applying a font effect, Find & Replace... only finds the text that was previously affected, if in Format... "(Without)"/"None"/'empty check box' was selected for that effect. Steps to Reproduce: 1. Type some text. 2. Underline part of the text. 3. Choose menu `Edit` - `Find & Replace…`, leave the Find text box empty, choose `Format` and for Underline select `(Without)`, `OK`. 4. Press `Find All`. 5. Un-underline the text of step 2. 6. Repeat steps 3. and 4. 7. Clear direct format on the text of step 2. 8. Repeat steps 3. and 4. […] 9. After step 5., select all text and paste in a new text document. 10. Repeat steps 3. and 4. […] 11. After step 5., save, restart LibreOffice and open the document. 12. Repeat steps 3. and 4. Actual Results: After step 4.: Nothing is selected. After step 6.: Only un-underlined text is selected. After step 8.: Nothing is selected. After step 10.: From the text of step 2 until the end of the paragraph are not selected. After step 12.: Only un-underlined text is selected. Expected Results: After step 4.: No underlined text is selected. After step 6.: All text (no underlined and un-underlined) is selected. After step 8.: All text is selected. After step 10.: All text is selected. After step 12.: All text (no underlined and un-underlined) is selected. Reproducible: Always User Profile Reset: Yes OpenGL enabled: Yes Additional Info: Happens with Relief, Overlining, Strikethrough, Underlining, Outline, Shadow, and Blinking, Highlighting, and may be some more. Do not happens with Effects. Version: 6.3.6.2 (x86) Build ID: 2196df99b074d8a661f4036fca8fa0cbfa33a497 CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; Locale: es-MX (es_MX); UI-Language: en-US Calc: threaded
I confirm it with Version: 7.0.4.2 (x64) Build ID: dcf040e67528d9187c66b2379df5ea4407429775 CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL Result after step 4: Like in original bug report Result after step 6: Only text before the previously underlined text is selected Result after step 8: All text is selected (as expected) Haven't testedother steps, beause it is clear, that something is wrong.
Tested with: Version: 7.2.0.0.alpha0+ (x64) Build ID: 4041c68ea59181f1c4774c356809066d2051db41 CPU threads: 8; OS: Windows 10.0 Build 19041; UI render: default; VCL: win Locale: en-US (en_DK); UI: en-US Calc: threaded > Expected Results: > After step 4.: No underlined text is selected. Got expected result (also with 6.3.6.2) > After step 6.: All text (no underlined and un-underlined) is selected. In paragraphs where something was un-underlined, then text up to the text with direct formatting is highlighted, but not the rest of the paragraph (i.e., sounds like what was described as "actual result" after step 10). > After step 8.: All text is selected. Got expected -- except (again) the highlighting stops for the rest of the paragraph after text with direct formatting. > After step 12.: All text (no underlined and un-underlined) is selected. Same result as step 8. In short, searching for Format "no underline", if some of the characters have direct formatting, then the rest of the paragraph is not highlighted with "Find All" (even if it is not underlined).
It seem to me that this bug is related to https://bugs.documentfoundation.org/show_bug.cgi?id=135871
*** Bug 163729 has been marked as a duplicate of this bug. ***