Issue 74054

Summary: XEnumeration fails when trying to enumerate a selection near a text section contained in a table cell
Product: App Dev Reporter: mfrancis <openoffice>
Component: apiAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: PC   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Description Flags
Java source demonstrating a problem using XEnumeration with Writer selections none

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

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