Issue 68084 - Correcting spelling at the very start of a format chane results in the format change being lost
Summary: Correcting spelling at the very start of a format chane results in the format...
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 2.0.3
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2006-08-02 16:25 UTC by timgraves
Modified: 2013-08-07 14:44 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Test document (7.69 KB, application/vnd.oasis.opendocument.text)
2006-10-03 01:40 UTC, nemeth.lacko
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description timgraves 2006-08-02 16:25:06 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."
Comment 1 cbrunet 2006-08-02 18:39:49 UTC
Duplicated on OOo 2.03FR Mac OS X PPC.
Duplicated on OOo 2.03FR Windows 2000.
Comment 2 nemeth.lacko 2006-10-03 01:36:03 UTC
Change component: Word processor
Comment 3 nemeth.lacko 2006-10-03 01:40:06 UTC
Created attachment 39516 [details]
Test document
Comment 4 Mathias_Bauer 2007-12-04 09:03:38 UTC
Oliver, Thomas: please check if the bug still exists in Writer and EditEngine.
Target 3.0
Comment 5 Oliver Specht 2007-12-04 09:19:25 UTC
The bug still exists in Writer and EditEngine.
Comment 6 Oliver Specht 2008-04-21 13:25:37 UTC
->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?
Comment 7 andreas.martens 2008-04-25 13:08:15 UTC
ama->os:
That's of course a possibility. BTW: the search&replace works like expected.
Comment 8 andreas.martens 2008-04-28 10:16:04 UTC
Set target: OOo3.x