[Libreoffice-bugs] [Bug 120094] New: User function called from custom toolbar button wrongly gets passed a zero of type Integer as parameter
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun Sep 23 18:20:09 UTC 2018
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: libreoffice-bugs at lists.freedesktop.org
Reporter: jag at psilosoph.de
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180923/78b813a8/attachment.html>
More information about the Libreoffice-bugs
mailing list