[Libreoffice-bugs] [Bug 121590] New: Unable to alter or delete user fields containing spaces
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Nov 21 14:13:28 UTC 2018
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: libreoffice-bugs at lists.freedesktop.org
Reporter: libreoffice at voicetechnology.co.uk
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20181121/bd9059f7/attachment.html>
More information about the Libreoffice-bugs
mailing list