Issue 74054 - XEnumeration fails when trying to enumerate a selection near a text section contained in a table cell
Summary: XEnumeration fails when trying to enumerate a selection near a text section c...
Status: CONFIRMED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC All
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-31 11:40 UTC by mfrancis
Modified: 2013-02-24 21:07 UTC (History)
1 user (show)

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


Attachments
Java source demonstrating a problem using XEnumeration with Writer selections (6.42 KB, text/plain)
2007-01-31 11:42 UTC, mfrancis
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description mfrancis 2007-01-31 11:40:57 UTC
Normally, selected text within Writer can be enumerated by creating an
XEnumeration on the selection's parts.

For the specific case where a text section is contained within a table cell, a
broken XEnumeration is returned if the selection is before or during the text
section. (Selections in table cells with no sections, or in a table cell but
after the last section contained within it, work as expected).

Calling .hasMoreElements() on an enumeration broken in this way returns _true_,
but attempting to actually access its elements with .nextElement() throws a
NoSuchElementException.

Java source illustrating the issue is attached. The bug has been seen on both
2.0.4/Linux and 2.1.0/Windows
Comment 1 mfrancis 2007-01-31 11:42:38 UTC
Created attachment 42602 [details]
Java source demonstrating a problem using XEnumeration with Writer selections
Comment 2 michael.ruess 2007-01-31 12:22:18 UTC
Reassined to CN.
Comment 3 chne 2007-02-07 20:57:49 UTC
I could reproduce this issue with oof680_m6
Comment 4 Mathias_Bauer 2007-02-08 10:31:22 UTC
2.2.1 is only for urgent fixes -> 2.3
Comment 5 thomas.lange 2007-07-26 13:41:09 UTC
Since code freeze is near and some other issues still need to fixed: 
setting target to OOo 2.x
Comment 6 Martin Hollmichel 2007-11-09 17:27:44 UTC
set target from 2.x to 3.x according to
http://wiki.services.openoffice.org/wiki/Target_3x