Issue 120206

Summary: Mark for index entries can become separated from the text
Product: Writer Reporter: Will Pittenger <will.pittenger1+apache>
Component: editingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Normal    
Priority: P3 CC: will.pittenger1+apache, xavi_dandy
Version: 3.4.0Keywords: needmoreinfo
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: 3.4.1
Developer Difficulty: ---
Attachments:
Description Flags
Demostration of what could happen none

Description Will Pittenger 2012-07-06 00:26:30 UTC
I also noticed it is possible to cause the mark for the index entry (in the text) to end up no where near the text it is supposed to be associated with.  Suppose I add "text" on page X.  Writer now shows "_text" where the underscore is the mark for the index entry.  Now assume that add something between the mark and the text.  So I get "_junk in front of text".  Assume that the word I originally indexed is now on a different page from the mark.

This is why I think Writer needs to store not just the start of the entry, but the end too.  If the user attempts to change the text between the start and end, Writer would ask the user what to do.
Comment 1 Javier Lopez 2013-02-07 02:45:14 UTC
Hello

Could you explain clearly your problem, I do not understand. Please give me the steps and a document attached

Javier Lopez
Comment 2 Will Pittenger 2013-02-07 02:50:57 UTC
Created attachment 80215 [details]
Demostration of what could happen

Examine the attached file.  I added an index mark for the word "tests", but changed the index entry to "test".  I then copied the entire sequence to a later line.  However, in that line, I put an extra "t" in between the mark and the word "tests".  Now, it is possible for the mark to end up on another page from the text it supposed to be with.
Comment 3 Will Pittenger 2013-02-07 02:51:36 UTC
(In reply to comment #2)
> Created attachment 80215 [details]
> Demostration of what could happen
> 
> Examine the attached file.  I added an index mark for the word "tests", but
> changed the index entry to "test".  I then copied the entire sequence to a
> later line.  However, in that line, I put an extra "t" in between the mark
> and the word "tests".  Now, it is possible for the mark to end up on another
> page from the text it supposed to be with.

Oops.  I changed the extra "t" into a space, but forgot to change what I typed.
Comment 4 Javier Lopez 2013-02-07 03:01:56 UTC
Ok. I have it