Issue 112179

Summary: Linguistic: Wrong dictionary when adding words from context menu
Product: Writer Reporter: thomas.lange
Component: codeAssignee: stefan.baltzer
Status: CLOSED FIXED QA Contact: issues@sw <issues>
Severity: Trivial    
Priority: P3 CC: courrier.oou.fr.mjk, issues, stefan.baltzer
Version: DEV300m79Keywords: regression
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description thomas.lange 2010-06-07 10:32:01 UTC
If a new dictionary is created and it is tried to add a new word to it (via the
context menu of misspelled words), then it may fail to get the correct
dictionar. This may result in the word being added to the wrong one or not be
added at all because the mismatched dictionary is read-only.
The Problem does not appear any more once the office is restarted once after the
new dictionary was created.
Comment 1 thomas.lange 2010-06-07 10:32:22 UTC
.
Comment 2 thomas.lange 2010-06-07 10:32:38 UTC
.
Comment 3 thomas.lange 2010-06-07 10:39:53 UTC
.
Comment 4 majukr05 2010-06-16 20:50:29 UTC
CC
Comment 5 majukr05 2010-06-18 22:28:00 UTC
[DEV300_m83 on WinXP]

I can confirm the error message "Dict is read-only";
after a restart of OOo "add to dic" via context menu will "work".

- Install the English, French and German language modules (Extension Manager)
- Open Writer

(1)
- create and enable a user-defined dictionary ccc.dic [language en-US] in Tools
> Options > … > User-defined Dictionaries > New
- restart OOo
- type a misspelled word (language en-US) and add it to ccc.dic via context
menu, e.g.: follks 
- open ccc.dic in Tools > Options > … > User-defined Dictionaries > Edit
- you'll find the entry (follks) in ccc.dic

(2)
- create and enable a user-defined dictionary bbb.dic [language fr-FR]
- restart OOo
- type a misspelled word (language fr-FR) and add it to bbb.dic via context
menu, e.g.: meccs
- type a misspelled word (language en-US) and try to add it to ccc.dic via
context menu, e.g.: honney 
- open bbb.dic in Tools > Options > … > User-defined Dictionaries > Edit
- you'll find both added entries (meccs, honney) in bbb.dic
- create and enable a user-defined dictionary aaa.dic [language de-DE]
- restart OOo

(3)
- type a misspelled word (language de-DE) and add it to aaa.dic via context
menu, e.g.: maussen 
- type a misspelled word (language fr-FR) and add it to bbb.dic via context
menu, e.g.: moissemodelle 
- type a misspelled word (language en-US) and try to add it to ccc.dic via
context menu, e.g.: corrubt
- you'll find the three added entries (maussen, moissemodelle, corrubt)  in aaa.dic

All words, which are added to a user-defined dictionary via context menu are
added to the first dictionary in alphabetic order, and remain redlined if this
dictionary doesn't match the text language. 
(Adding the words via F7 works fine.)
Comment 6 thomas.lange 2010-06-22 09:17:11 UTC
*** Issue 112475 has been marked as a duplicate of this issue. ***
Comment 7 stefan.baltzer 2010-06-22 10:50:27 UTC
Set keyword "regression" (Newly created user-defined dictionaries are read-only).
Comment 8 thomas.lange 2010-06-24 08:08:42 UTC
Fixed in CWS tl81 for Writer and EditEditengine.

Files changed:
M cui/source/options/optdict.cxx
M editeng/source/editeng/editview.cxx
M editeng/source/misc/unolingu.cxx
M sw/source/ui/lingu/olmenu.cxx

Further small improvements:
- the standard.dic is now always activated by default once created
- same goes for new created user dictionaries
Comment 9 thomas.lange 2010-07-02 06:09:57 UTC
*** Issue 112854 has been marked as a duplicate of this issue. ***
Comment 10 thomas.lange 2010-07-05 08:04:09 UTC
.
Comment 11 stefan.baltzer 2010-07-14 14:12:44 UTC
Verified in CWS tl81.
Comment 12 majukr05 2010-07-27 21:16:36 UTC
[Tested with OOO330_m2 (CWS tl81 integrated) on WinXP]

The test scenario from desc6 works fine now (without any restart of OOo).
All new words (en, fr, de) have been added to the intended user-defined
dictionaries.


Comment 13 thomas.lange 2010-09-01 09:23:36 UTC
*** Issue 114233 has been marked as a duplicate of this issue. ***