Apache OpenOffice (AOO) Bugzilla – Issue 78664
event "item status changed" is fired twice
Last modified: 2013-02-24 21:07:40 UTC
I placed a pushbutton at a form with toggle = TRUE, so it can have state = 0 and state = 1. At the event "item status changed" i registered a sub - but it is performed twice. :-( See into the attached sample please. mroe
Created attachment 46061 [details] sample for "item status changed" is fired twice
Hi mroe, Have you tried the second event in the list (I guess it is "When called/started" or something like that in English). That launches you code once. I assume "item status changed" is launched when button is pressed and when the button is released. Does this help? Cor
jsc -> fs: it looks like a bug for me, can you take a look on it.
Created attachment 46424 [details] suggested patch
fs->pl: Please review the attached patch. Reasoning for this patch: The flow is as follows: PushButton::Tracking( end_tracking ) does (if it is a Toggle button) a Check, which calls a Toggle. Then, PushButton::Tracking calls a Toggle, again. Thus, two VCLEVENT_PUSHBUTTON_TOGGLE are fired.
seems to be correct
patch committed to CWS dba23b
fs-> msc: please verify in CWS dba23b
targeting to 2.3, since the fix is part of a CWS aiming for this release
verified in CWS dba23b find more information about this CWS, like when it is available in the master builds, in EIS, the Environment Information System: http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=SRC680%2Fdba23b
Hi, this is fixed in the current master. The current master is available at http://download.openoffice.org/680/index.html I close this issue now. Bye Marc