Apache OpenOffice (AOO) Bugzilla – Issue 56165
CreateEnumeration does not properly enumerate text at the end of an empty paragraph
Last modified: 2013-02-24 21:10:09 UTC
More specifically, I am enumerating text looking for reference marks. I obtain the selected text and then enumerate the selected text. Consider the following text: Hello, how are you Blah If you select the text from the “are you Blah†then everything enumerates as expected: <NewParagraph/> 'First paragraph is enumerated <TextContent>are</TextContent> <NewParagraph/> 'Second paragraph is enumerated <RefMark name='youmark'></RefMark> 'Start reference mark <TextContent>you</TextContent> 'See the text in the enumeration <RefMark name='youmark'>you</RefMark> 'End reference mark <NewParagraph/> <TextContent>Blah</TextContent> Notice that the text “you†has a reference mark around it. Now, if I select from immediately AFTER “are†and then I include “you blahâ€, then I have the following enumerations: <NewParagraph/> 'First paragraph is enumerated <TextContent></TextContent> 'Nothing in the first paragraph <RefMark name='youmark'></RefMark> 'Why is there a reference mark here? <NewParagraph/> 'Second paragraph is enumerated <RefMark name='youmark'></RefMark> 'Start reference mark <TextContent>you</TextContent> 'See the text in the enumeration <RefMark name='youmark'>you</RefMark> 'End reference mark <NewParagraph/> <TextContent>Blah</TextContent> Now, the start reference mark is enumerated twice. The attached document contains a macro that demonstrates the problem very nicely:
Created attachment 30569 [details] Demonstrate the problem
sw->tl: your area methinks
.
Fixed in CWS tl25. Files changed: - sw/source/core/unocore/unoportenum.cxx
ok in tl25
ok in src680m202