https://bugs.documentfoundation.org/show_bug.cgi?id=121590

            Bug ID: 121590
           Summary: Unable to alter or delete user fields containing
                    spaces
           Product: LibreOffice
           Version: 6.1.3.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: UI
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 146874
  --> https://bugs.documentfoundation.org/attachment.cgi?id=146874&action=edit
Document with code and button to reproduce the problem

If you create a user field in a macro where the name contains a space, the more
fields dialog will not let you edit or delete the field.


Code to reproduce the bug:


vDoc = ThisComponent
sName = "My Field"
If vDoc.getTextFieldMasters().hasByName("com.sun.star.text.FieldMaster.User." &
sName) Then
  vField =
vDoc.getTextFieldMasters().getByName("com.sun.star.text.FieldMaster.User." &
sName)
  vField.Content = "My Field Text"
Else
  vField = vDoc.createInstance("com.sun.star.text.FieldMaster.User")
  vField.Name = sName
  vField.Content = "My Field Text Update"
End If

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to