Bug 69803 - Step to previous/next index entry: automatically delete the index entry
Summary: Step to previous/next index entry: automatically delete the index entry
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.5.2 release
Hardware: x86 (IA32) Windows (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 70825 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-25 10:18 UTC by Zoltán Hegedüs
Modified: 2015-04-27 12:14 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example writer document (133.97 KB, application/vnd.oasis.opendocument.text)
2013-09-25 10:18 UTC, Zoltán Hegedüs
Details
Example Writer document (133.97 KB, application/vnd.oasis.opendocument.text)
2013-09-25 10:21 UTC, Zoltán Hegedüs
Details
Example document (search push_macro) (207.26 KB, application/vnd.oasis.opendocument.text)
2013-10-11 08:56 UTC, Zoltán Hegedüs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zoltán Hegedüs 2013-09-25 10:18:35 UTC
Created attachment 86549 [details]
Example writer document

Menu Edit - Index Entry: I deleted the actual index entry at the cursor, then I clicked to the <- arrow in the dialog box a lot of times (step to the previous index entry). Writer always steped to that, but deleted the index entries: 1 click deletes 1 index entry.
Comment 1 Zoltán Hegedüs 2013-09-25 10:21:56 UTC
Created attachment 86550 [details]
Example Writer document
Comment 2 Joris Muller 2013-09-30 14:42:02 UTC
Thank you for your feedback. I tried to reproduce this bug (Windows 7, LibreOffice 4.0.5.2) and didn't showed what going wrong. Do you expect that Writer delete each index entries touched when the <- arrow is used? What do you want to say with "Writer always steped to that"? That previous versions did that?
Clarifications needed.
Maybe, could you rewrite your bug report with :
- How to reproduce the bug ? (write each steps)
- What is happening ?
- What do you expected to happen?

Thank's
Comment 3 Joris Muller 2013-09-30 15:31:47 UTC
BugTriage :
- No duplicated bug fouded (keywords = "index entry")
- Problem description didn't appear clear. More info needed.
- Status changed to "NeedInfo"
Comment 4 Zoltán Hegedüs 2013-10-01 13:37:15 UTC
This error is not happen in the previous versions (3.5, 3.6).

Steps:
Open a document with a lot of index entryes, for example my attachment.
Set on the index entry highlighting, if already do not set.
You see the index entryes with gray background color.
Move the cursor to the end of an index entry at the middle of the document.
Menu Edit - Index entryes.
Delete the actual index entry: click to the button "Delete".
Step to the previous index entry: click to the button "<-".
Repeat the stepping some times.
Writer always steps to the previous index entry, and there is a gift or encore: Writer always deletes the actual index entry. For example, if you clicked 4 times to the button "<-", Writer deleted 4 index entries. The highlighting disappeared, and if you refresh the index, the entries disappered from the index.
Comment 5 Zoltán Hegedüs 2013-10-01 13:39:44 UTC
A correction (I can not edit the text):

Move the cursor to the BEGIN of an index entry at the middle of the document.
Comment 6 Dominique Boutry 2013-10-10 16:55:31 UTC
I have tried the manip on my Windows 7 / LO 4.0.5.2 system.

I have the following :
- when the cursor is just after the very last character of the index entry, I can't get then Edit/Index menu (greyed either in either the popup menu or the main edit/index... menu)
- when the cursor is at the beginning or the middle of the index entry, the problem doesn't occur.

How do you manage to "Move the cursor to the end of an index entry" and still have the menu ?
Comment 7 Zoltán Hegedüs 2013-10-11 08:56:22 UTC
Created attachment 87433 [details]
Example document (search push_macro)

The error does not happen all times.
Open the NEW attachment
Set on the entry highlighting (menu View, Ctrl+F8 makes this on/off)
Search for push_macro
Move the cursor to the begin of the word push_macro
Menu Edit - Index Entry (if this is not choosable, try moving the cursor left or right, because of an index entry is a zero-wide character)
Click to the button <- some times
All click deletes an index entry. For example, if you clicked 4 times, Writer deleted 4 index entries.
Comment 8 Dominique Boutry 2013-10-11 17:33:39 UTC
OK, reproductible.

Now I suggest that you have a glance at the result of multiple Undos after the test : index entries are restored, but tied with the first visible character of the corresponding word, and without any grey background. Re-playing the test results in the deletion of this first characters, also in the forward way.

For me, this tips in favor of a corruption of internal Writer data related to index entries.
Comment 9 Ulrich Windl 2014-06-10 07:25:16 UTC
*** Bug 70825 has been marked as a duplicate of this bug. ***
Comment 10 Gordo 2015-04-26 11:52:33 UTC
Could not reproduce.

Windows Vista 64
Version: 4.4.2.2
Build ID: c4c7d32d0d49397cad38d62472b0bc8acff48dd6

Changed to RESOLVED WORKSFORME.
Comment 11 Ulrich Windl 2015-04-27 07:15:02 UTC
> Could not reproduce.

But shouldn't you try to reproduce (in time) with the version where the defect was reported? Also the problem might have been fixed in an earlier version than 4.4.2.2.
Comment 12 Gordo 2015-04-27 12:14:11 UTC
Could not reproduce in 4.1.6.2 portable.