Issue 103913 - references to list items are wrong when items are moved
Summary: references to list items are wrong when items are moved
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: DEV300m52
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: eric.savary
QA Contact: issues@sw
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2009-07-30 17:33 UTC by Joe Smith
Modified: 2017-05-20 11:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Sample document showing problem (10.27 KB, application/vnd.oasis.opendocument.text)
2009-07-30 17:34 UTC, Joe Smith
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Joe Smith 2009-07-30 17:33:39 UTC
This is a regression compared to OOo 3.1.

I tested OOo-dev 3.2  300m53(Build:9412) on Fedora Linux 11.

Steps to reproduce:
1) Create a numbered list
2) Create a cross reference to one of the items in the list:
Insert > Cross Reference > Type: Numbered paragraphs ...
3) Move the list item using the "Move Up" arrow on the Bullets & Numbering toolbar.

The reference will not follow the item, but instead refers to the paragraph that
originally appeared after the item that was moved up.

If you move the last item in the list, the reference can shift to the unnumbered
paragraph following the list.

See the attached document for a sample.
Comment 1 Joe Smith 2009-07-30 17:34:34 UTC
Created attachment 63867 [details]
Sample document showing problem
Comment 2 eric.savary 2009-07-31 13:23:26 UTC
@OD: Confirmed regression compared to 3.1.

In the bugdoc, set the cursor on "4. Fourth" such as:
...
3. Third
4. Fo|urth
5. Fifth
...

- Move-up the numbering such as:
...
3. Fo|urth
4. Third
5. Fifth
...

-> The reference [4] [Fourth] i now [5] [Fifth] 
Comment 3 Oliver-Rainer Wittmann 2009-08-03 07:36:14 UTC
OD->b_michaelsen: Please take over, Thx.
Comment 4 bjoern.michaelsen 2009-08-04 14:04:13 UTC
started in cws bjm02
Comment 5 bjoern.michaelsen 2009-08-04 22:51:12 UTC
fixed in cws bjm02 with changeset 7ca2dc2b36ee.

http://hg.services.openoffice.org/hg/cws/bjm02/rev/7ca2dc2b36ee
Comment 6 bjoern.michaelsen 2009-08-12 17:10:58 UTC
@es: please verify.
Comment 7 eric.savary 2009-08-21 16:42:07 UTC
Verified in CWS bjm02
Comment 8 Joe Smith 2009-09-04 22:50:27 UTC
Testing DEV300_m57 on Linux (Fedora 11)

Problem is fixed; test document works correctly.

Thank you!