To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=82420 Issue #|82420 Summary|TextSection objects in a document are enumerated incor |rectly Component|Word processor Version|OOo 2.3 Platform|PC URL| OS/Version|All Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P2 Subcomponent|programming Assigned to|mru Reported by|listmanster
------- Additional comments from [EMAIL PROTECTED] Tue Oct 9 06:34:34 +0000 2007 ------- The XTextSectionsSupplier interface's getTextSections() under certain circumstances returns sections in an incorrect order. Writer also displays the sections incorrectly (using Format->Sections) Use case to duplicate the bug: a) Create an empty writer document. (OOo 2.3 ) b) Insert a section, call it "Section1". c) After this section, add a few paragraph breaks by hitting enter. d) Insert a section, call it "Section2". e) Now go to the space with line breaks between "Section1" and "Section2", and insert another section called "Section3" there. f) Finally click Format->Sections. and it displays the order of the sections as : Section1 Section2 Section3 When it should be: Section1 Section3 Section2 The API also displays the order incorrectly: <code> Dim sections sections = thisComponent.getTextSections().ElementNames Dim i Dim outStr outStr = "" For i=LBound(sections) to UBound(sections) outStr = sections(i) + Chr(13)+Chr(10) + outStr Next i Msgbox outStr </code> --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]