[Libreoffice-bugs] [Bug 113797] New: Label field' s property name mismatch in dialog editor and macro code

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Nov 12 23:58:51 UTC 2017


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

            Bug ID: 113797
           Summary: Label field's property name mismatch in dialog editor
                    and macro code
           Product: LibreOffice
           Version: 5.4.3.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: UI
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: jzombi at gmail.com

Description:
I have a dialog with a Label field element.
The dialog editor lists a property named "Label" under the General tab for this
element.
If I set the "Label" property in the dialog editor, it works as expected (sets
the text of the label on the form).
If I try to set the "Label" property with a macro, it fails with an error.

The macro works as expected using the "Text" property instead of "Label"
property (see Additional Information), so it is likely just a naming/UI issue.



Steps to Reproduce:
1. Create a dialog with a "Label field" named "MyLabel"
2. Create a macro accessing its "Label" property

        DialogLibraries.LoadLibrary("Standard")
        dialog = CreateUnoDialog(DialogLibraries.Standard.MyDialog)
        myLabel = dialog.GetControl("MyLabel")
        myLabel.Label = "some text"
        dialog.Execute

3. Run the macro

Actual Results:  
Error message:
        BASIC runtime error.
        Property or method not found: Label.

Expected Results:
The dialog pops up with the label "some text"


Reproducible: Always


User Profile Reset: No



Additional Info:
The following macro code works:
        myLabel.Text = "some text"

Help - About LibreOffice:
Version: 5.4.3.2
Build ID: 5.4.3-1
CPU threads: 6; OS: Linux 4.13; UI render: default; VCL: kde4; 
Locale: hu-HU (hu_HU.UTF-8); Calc: group


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101
Firefox/56.0

-- 
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/20171112/f7e5e3ef/attachment.html>


More information about the Libreoffice-bugs mailing list