To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=62426
Issue #:|62426
Summary:|getEnd() of headerText is wrong if header starts with
|a section
Component:|Word processor
Version:|680m155
Platform:|All
URL:|
OS/Version:|All
Status:|UNCONFIRMED
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|DEFECT
Priority:|P3
Subcomponent:|programming
Assigned to:|mru
Reported by:|leguff
------- Additional comments from [EMAIL PROTECTED] Wed Feb 22 04:09:13 -0800
2006 -------
- create an empty writer document
- add a default header
- append a paragraph to the header (so it contains two paragraphs)
- write a text into the first paragraph
- surround the first paragraph with a section
- now you have a section containing one paragraph and below an empty paragraph
- now try to add text via API to the end of the header:
pageStyleName = ThisComponent.getText().getStart().PageStyleName
headerText =
ThisComponent.getStyleFamilies().getByName("PageStyles").getByName(pageStyleName).HeaderText
headerText.insertString(headerText.getEnd(), "some text", false)
==> you'll see that the text has been added to the end of the section
Now insert a paragraph break BEFORE the section (just use ALT+RETURN at the
beginning of the section) and rerun the code:
==> you'll see that the text has been added to the end of the header as expected
---------------------------------------------------------------------
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]