https://bugs.documentfoundation.org/show_bug.cgi?id=153077
Bug ID: 153077 Summary: A ComboBox ionseredf into a spreadsheet raising an onLosingFocus event doiesn't pass the .Sourtce correctly. Product: LibreOffice Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: medium Component: Calc Assignee: libreoffice-bugs@lists.freedesktop.org Reporter: j...@psilosoph.de Created attachment 184721 --> https://bugs.documentfoundation.org/attachment.cgi?id=184721&action=edit Minimal demo of the bug A comboBox is inserted into one of more spreadsheets of one document. There are assigned event handlers for "When receiving focus" and for "When losing focus". Both are given as Basic Subs here. Both handlers are called as expected, but only the receive-handler gets always correctly passed the event with .Source including the .Source.Model. The lose-handfler only gets a correct event under some condition, in specific if the focus is passed to a cell of the sheet to which the control is anchored. If the control loses the focus due to the user selecting a different sheet, the event is defective. The .Source claims to be an OComboBoxControl object, but its .Model is Null. See attached demo. The respective bug does not occur for all the FormControl types. A simple button e.g. is not afflicted. -- You are receiving this mail because: You are the assignee for the bug.