To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=101249
                 Issue #|101249
                 Summary|XTextRange.getString() inside of numbered list returns
                        | item number
               Component|api
                 Version|OOo 3.0.1
                Platform|All
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|jsc
             Reported by|mux2005





------- Additional comments from mux2...@openoffice.org Tue Apr 21 15:36:31 
+0000 2009 -------
The button in the test document executes the simple macro

Sub Main
  range = ThisComponent.Bookmarks.getByName("test").Anchor
  range.String = range.String & "Test"
End Sub


which is supposed to append the word „Test“ to the text range marked by the
bookmark „test“. However, the result is incorrect. In addition to the appended
text, a „1.“ is inserted before the word „This“. The reason is that
XTextRange.getString() erroneously returns the „1.“ which is outside the
bookmark and does not even have a representation in the document model.

XTextRange.getString() must not return the item number. It is not part of the
text range.

---------------------------------------------------------------------
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: issues-unsubscr...@api.openoffice.org
For additional commands, e-mail: issues-h...@api.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to