Bug 153424 - Autocorrect for "Replace Custom Styles" does not work when a custom style is applied to an empty paragraph
Summary: Autocorrect for "Replace Custom Styles" does not work when a custom style is ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: AutoCorrect-Complete
  Show dependency treegraph
 
Reported: 2023-02-06 22:34 UTC by sdc.blanco
Modified: 2023-05-05 11:05 UTC (History)
2 users (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 2023-02-06 22:34:42 UTC
1. Apply some Custom paragraph styles to empty paragraphs in a document.
   (you might also want to make apply some custom styles some paragraphs with text
    to see that these will be converted correctly.
2. Tools > AutoCorrect > AutoCorrect Options - Options tab, select "Replace Custom Styles".
3. Run "Tools > AutoCorrect > Apply

Actual:    Empty paragraphs are not converted to Text Body PS.
Expected:  Empty paragraphs are converted to Text Body PS.

Additional information:  

Afaict, works correctly for custom style paragraphs with text.
Comment 1 Dieter 2023-02-22 07:12:25 UTC
I confirm it with

Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL threaded

I also confirm, that it works with text in paragraphs
Comment 2 sdc.blanco 2023-05-05 11:05:32 UTC
As suggested in bug 140024, comment 5, "Replace Custom Styles" should be removed as an AutoCorrect option. If that resolution is accepted, then it would also resolve this ticket (by eliminating the problem).