Bug 188523 - canceling spelling dialog removes rich text formating.
Summary: canceling spelling dialog removes rich text formating.
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdeui (show other bugs)
Version: 4.2
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 188810 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-31 07:53 UTC by AhmedG
Modified: 2009-06-21 03:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description AhmedG 2009-03-31 07:53:49 UTC
Version:            (using Devel)
Compiler:          gcc-g++ 4.433 Kubuntu Jaunty default compiler 
OS:                Linux
Installed from:    Compiled sources

When there is misspelled text in a krichtextedit (though ktextedit hasn't been tested) and you open the spelling check dialog. If you hit cancel, all the rich text formating is removed. For example, compile the krichtextedit demo/example application from svn 

 svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs/kdeui/tests/krichtexteditor/

compile using 
mkdir build
cd build
cmake ../
make 
./krichtexteditor

then open a file containing bold text or bulleted lists. Or you can use ctrl+b to make text bold then type any words you want as long as some of them are misspelled. Also, make sure that all the text doesn't have the same formatting (at least some unbulleted or non-bold words). N

Now right click and in the context menu click check spelling. Then hit cancel on the spelling check dialog. 

What Happens: The richtext properties of the document will change. If there is a list in the document all the lists will be removed and the document will look like it's plaintext. However if the test was done with bold text, if the word next to the cursor is bold, all the document will become bold and vice versa.

What should happen: text formatting should be preserved (like it is when you hit finished).

Possible Solutions: 
Remove the cancel button as finished does basically the same thing.
Better solution though might be to fix the way the cancel button works. 


Other:
I wasn't sure this was a krichtextedit bug as it seems more related to the spelling dialog. I am not exactly sure which component this fits under. It's a fairly annyoing bug though, that I encountered while trying to add spelling support to kjots. 
Please feel free to change this to the proper section if there is a better once, and I appologize for the inconvinence.
Comment 1 Jonathan Thomas 2009-04-05 13:29:18 UTC
*** Bug 188810 has been marked as a duplicate of this bug. ***
Comment 2 AhmedG 2009-04-05 20:35:56 UTC
Has anyone experienced this outside of Kubuntu?
Comment 3 Christoph Feck 2009-06-21 03:54:20 UTC
Fixed with http://websvn.kde.org/?view=rev&revision=945357