Apache OpenOffice (AOO) Bugzilla – Issue 103486
XMenuBar::getPopupMenu fails to return the menu
Last modified: 2022-11-03 14:45:03 UTC
I try to get the popup menu from the main menubar in the following BASIC macro, but throw a Basic runtime error. Step to reproduce: 1. File a new document and run the following BASIC macro: Sub Main dim oMenuBar dim nItemid dim oPopMenu oMenuBar = thiscomponent.getcurrentcontroller.getframe.layoutmanager.getelement("private:resource/menubar/menubar").XMenuBar nItemid = oMenuBar.getItemId(0) oPopMenu = oMenuBar.getPopupMenu(nItemid) msgbox oPopMenu.isPopupMenu End Sub 2. It throws a "Basic runtime error" in the macro line: msgbox oPopMenu.isPopupMenu
Created attachment 63500 [details] Patch to fix this issue
jsc -> cd: one for you
Anybody to have a look?