Apache OpenOffice (AOO) Bugzilla – Issue 68084
Correcting spelling at the very start of a format chane results in the format change being lost
Last modified: 2013-08-07 14:44:35 UTC
Errors with Language English (UK) and English (USA) may also fail with other languages. This fails in the word processor, spreadsheet and presentation package. I havent tried the other components. This bug also happens in 2.0.3 on Windows - though I have a limited sample of systems / os / OO versions I suspect it is common on all platforms. If the spelling checker discovers a misspelling with a word at the very begining of a section of bold / underline / italic text (may also happen with other text effects) I.e. the red squggly line is shown then correcting the word using the right click OR the spell checker popup window results in the formatting being removed from the corrected text. This only occurs when the format change is at the very start of the word being corrected, I.e. "This is <B>Bolde texte</B> in a sentance." (Using <B> and </B> to indicate the start and end of bold formatting) after connection would result in "This is Bold <B>text</B> in a sentance." (Note that the correction of texte to text retains the proper formatting) Normally I would expect the result to be "This is <B>Bold text</B> in a sentance." If the format change is not the first character of the misspelt word (even if it is the first visible character) correcting the spelling works and the fomating is retained so correcting "This is<B> Bolde texte</B> in a sentance." (Note the bold here starts befor the space) correctly produces "This is <B>Bold text</B> in a sentance."
Duplicated on OOo 2.03FR Mac OS X PPC. Duplicated on OOo 2.03FR Windows 2000.
Change component: Word processor
Created attachment 39516 [details] Test document
Oliver, Thomas: please check if the bug still exists in Writer and EditEngine. Target 3.0
The bug still exists in Writer and EditEngine.
->ama: The Writer part (in lingu/olmenu.cxx) deletes the selected word first then inserts the new string. How about a Replace() method that takes care of the attributes?
ama->os: That's of course a possibility. BTW: the search&replace works like expected.
Set target: OOo3.x