https://bugs.documentfoundation.org/show_bug.cgi?id=161843
--- Comment #1 from Werner Tietz <[email protected]> --- first: Don't do 3. 4. 5. in daily practise! never!! store youre python-code to: ~/.config/libreoffice/4/user/Scripts/python/… youre »asking« twice for »text.Start« so there are 2 pointing to the same, you may avoid it by: ___________________ def test(*arg): """ This is a test macro. keep sure you have some writer.odt in focus """ document = XSCRIPTCONTEXT.getDocument() text_object = document.Text.Start document.Text.End.String = f"{text_object is text_object}" __________________ Also note that object equality is checked with "is" and not with the "==" operator, and that you do not have to obtain the reference to the currently open document in focus in two different ways! I would say: Not a Bug! -- You are receiving this mail because: You are the assignee for the bug.
