https://bugs.freedesktop.org/show_bug.cgi?id=65992

          Priority: medium
            Bug ID: 65992
          Assignee: libreoffice-bugs@lists.freedesktop.org
           Summary: EDITING: Editing custom wordbook causes corruption
          Severity: normal
    Classification: Unclassified
                OS: Windows (All)
          Reporter: santiago...@live.com
          Hardware: Other
        Whiteboard: BSA
            Status: UNCONFIRMED
           Version: 4.0.4.2 release
         Component: Writer
           Product: LibreOffice

Problem description: 

Deleting words from your custom wordbook corrupts your custom wordbook (file
"standard.dic" in user-folder "wordbook").

Steps to reproduce:

1. Start with an empty wordbook -> empty user-folder "wordbook" or a
"standard.dic" file that just contains the default entry:

OOoUserDict1
lang: <none>
type: positive
---

2. Open writer and type in the three words "herxherx" "hirxhirx" "harxharx"

3. Add the three words to your custom wordbook (right-click on each and choose
"Add")

4. Now your "standard.dic" file should look like this:

OOoUserDict1
lang: <none>
type: positive
---
harxharx
herxherx
hirxhirx

5.1 Go to "Tools -> Options -> Language Settings -> Writing Aids ->
User-defined dictionaries
-> "standard [All]" -> Edit", delete the first entry (harxharx), then click
"close", then click "OK" (closing the Options-Menu) then close Writer

5.1.1 Your wordbook entry now looks like this (last entry doubled):

OOoUserDict1
lang: <none>
type: positive
---
herxherx
hirxhirx
hirxhirx

5.2 Go to "Tools -> Options -> Language Settings -> Writing Aids ->
User-defined dictionaries
-> "standard [All]" -> Edit", delete the second entry (herxherx), then click
"close", then click "OK" (closing the Options-Menu) then close Writer

5.2.1 Your wordbook entry now looks like this (last entry doubled):

OOoUserDict1
lang: <none>
type: positive
---
harxharx
hirxhirx
hirxhirx

5.3 Go to "Tools -> Options -> Language Settings -> Writing Aids ->
User-defined dictionaries
-> "standard [All]" -> Edit", delete the last entry (hirxhirx), then click
"close", then click "OK" (closing the Options-Menu) then close Writer

5.3.1 Your wordbook entry now looks like this (nothing got deleted):

OOoUserDict1
lang: <none>
type: positive
---
harxharx
herxherx
hirxhirx

Current behavior:

Deleting an entry (expect last) doubles last entry; deleting last entry is not
working.

Expected behavior:

Deleting "harxharx" should result in:

OOoUserDict1
lang: <none>
type: positive
---
herxherx
hirxhirx

Deleting "herxherx" should result in:

OOoUserDict1
lang: <none>
type: positive
---
harxharx
hirxhirx

Deleting "hirxhirx" should result in:

OOoUserDict1
lang: <none>
type: positive
---
harxharx
herxherx

Operating System: Windows XP SP3
LibreOffice Version: 4.0.4.2 (Build ID:
9e9821abd0ffdbc09cd8c52eaa574fa09eb08f2)
Operating System: Windows XP
Version: 4.0.4.2 release

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to