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

            Bug ID: 120094
           Summary: User function called from custom toolbar button
                    wrongly gets passed a zero of type Integer as
                    parameter
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: UI
          Assignee: [email protected]
          Reporter: [email protected]

I have a few macros with optional parameters and expecting to be called mainly
on a user action: via a formcontrol event (indirect), a toolbar click (direct),
or a keyboard shortcut (direct). A formcontrol button will pass an event which
may be evaluated. A keyboard shortcut passes nothing - and this signals
correctly that no further information is available and defaults are to use. 

Calling such a macro by a click on a custom button in a toolbar it gets passed
a numeric 0 of type 'Integer'. 

This doesn't make sense. It aggravates the checks concerning the optional
parameter without giving a useful information. Or is this behaviour intended to
tell "Call came from a toolbar." as opposed to "Call was triggered by a
shortcut key." 

If information should be provided at all, it should be passed as an event.

-- 
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