Apache OpenOffice (AOO) Bugzilla – Issue 124856
doAccessibleAction(0) failed on combobox with dropdown
Last modified: 2017-05-20 09:32:06 UTC
Created attachment 83362 [details] Test document contains macro Reported in: https://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=69630 Open the attached document and click "Execute macro" field to open the dialog. There are two combobox, one is dropdown enabled (ComboBox1) and another is diabled placed below (ComboBox2). - Push "Info" button on the dialog -> opened messagebox shows number of count of actions. ComboBox1 should have 1 action and another should not have any actions. - Push "Action 0 for box1" button on the dialog. -> It tries to execute doAccessibleAction method with action index 0. But it shows com.sun.star.lang.IndexOutOfBoundsException on AOO 4.1.0. It worked on 4.0.1. VCLXAccessibleBox::getAccessibleActionCount method returns 0 for m_bIsDropDownBox is true and 0 for false. But it should be 1 for true, 0 for otherwise.
Add regression keyword.
Created attachment 83386 [details] Proposed patch to change number of accessible actions for dropdown enabled The patch contains to change count of accessible action for dropdown enabled box. I found the problem in getAccessibleActionDescription method and it related to this subject. I met another problem after the above fix. When I choose an entry from the dropdown box shown by the accessible action, the office crashed. Because m_xText instance variable is already non-valid reference after the dropdown is closed that shown by the accessible action in case VCLEVENT_COMBOBOX_SELECT of VCLXAccessibleBox::ProcessWindowEvent method. After the attached patch, the crash is not happen. But the later part of the VCLEVENT_COMBOBOX_SELECT is never happen, it seems.
it's a regression and a patch is in place
"jsc" committed SVN revision 1607279 into trunk: #124856# correct return number of accessible actions for dropdown box
"jsc" committed SVN revision 1607286 into branches/AOO410: #124856# merge fix frrom trunk, correct number of accessible actions for drop...
patch reviewed and integrated on trunk and AOO410 branch
Is this patch integrated in AOO411m1(Build:9770) - Rev. 1603804 2014-06-16 14:10:45 (Mo, 16 Jun 2014)?
no it will be integrated in the next milestone, you can see the svn commit messages from today ;-)
set target
grant show stopper flag
Verified fixed with milestone 2-- AOO411m2(Build:9771) - Rev. 1608452 2014-07-07 15:22 - Linux i686
Verified fixed on Windows 8 on AOO 4.1.1 m3 , Rev: 1611634 Now the Macros are running without any exceptions thanks Rekha