https://bugs.documentfoundation.org/show_bug.cgi?id=106377

            Bug ID: 106377
           Summary: Wrong Behaviour of Undo in Writer With Index Entry
           Product: LibreOffice
           Version: 5.3.1.1 rc
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Steps to Reproduce:

1. Type in "Hello World!" in Writer.

2. Put cursor at the beginning of the paragraph (i.e., before "H").

3. Insert > Table of Contents and Index > Index Entry. The default value for
"Entry" is displayed as "Hello". 
DO revise it to something else (e.g., "Hellow"). Click OK to close the
dialogue.

4. Put cursor at the beginning of the paragraph, then right-click > Index Entry
> Remove.

5. Undo until you can not undo.

6. Redo until you can not redo.

--> You get "ello World!!!br0ken!!"

It is noticed that the revision of entry name in step 3 is important. 
* If you do not revise the entry name (i.e., use the default "Hello"), the
Index Entry will be set on the world "Hello" and you will see "Hello" has a
shadow. In this case, you do not reproduce the bug behaviour in step 6.
* If you revise it to "Hellow", the Index Entry will be set before "H", and no
text in the document has shadow. In this case, you will reproduce the bug
behaviour.

Version: 5.4.0.0.alpha0+
Build ID: af871d02914c9fc6a08079f67b4af71a198e166a
CPU Threads: 4; OS Version: Linux 4.4; UI Render: default; VCL: gtk2; 
Locale: zh-CN (zh_CN.UTF-8); Calc: group
2017-02-27.
Ubuntu 16.04 LTS X64.

Also reproduced in:
Version: 5.3.1.1
Build ID: 72fee18f394a980128dc111963f2eefb05998eeb
CPU Threads: 4; OS Version: Linux 4.4; UI Render: default; VCL: gtk2; Layout
Engine: new; 
Locale: zh-CN (zh_CN.UTF-8); Calc: group

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to