<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - User function called from custom toolbar button wrongly gets passed a zero of type Integer as parameter"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=120094">120094</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>User function called from custom toolbar button wrongly gets passed a zero of type Integer as parameter
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>UI
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jag@psilosoph.de
</td>
</tr></table>
<p>
<div>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>