Bug 158236 - Spell check dialog might replace fields by plain text when manually correcting
Summary: Spell check dialog might replace fields by plain text when manually correcting
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Spell-Checking-Dialog
  Show dependency treegraph
 
Reported: 2023-11-16 07:21 UTC by Oliver Specht (CIB)
Modified: 2025-10-16 23:02 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Spelling error in a sentence with two fields (11.10 KB, application/vnd.oasis.opendocument.text)
2023-11-16 07:21 UTC, Oliver Specht (CIB)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Specht (CIB) 2023-11-16 07:21:35 UTC
Created attachment 190857 [details]
Spelling error in a sentence with two fields

Open the attached document and start the spell check dialog (F7) 
Delete the marked word and press correct.
-> The sentence looks identical but the date/time are no fields but simple text.
Comment 1 Gabor Kelemen (Collabora) 2023-11-16 09:30:59 UTC
Confirming in 

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 50add2043752c7b07beccef9a509bea6c09619f8
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded

and already in 3.3
Comment 2 Justin L 2025-10-16 23:01:59 UTC
repro 26.2+

Note that I had to follow the instructions exactly to reproduce. Correcting using a suggestion, or making the correction by hand worked fine. It was only deleting the entire word that resulted in the reported problem.

I imagine other things that were stripped out to make the clean-string would also be lost - like comments etc.