Apache OpenOffice (AOO) Bugzilla – Issue 118909
ElementNames of css.ui.UICategoryDescription service has some empty strings
Last modified: 2014-01-08 08:42:17 UTC
getElementNames method of css.ui.UICategoryDescription returns list of module names but it returns some empty strings in it. Sub UICategoryDescription cd = CreateUnoService("com.sun.star.ui.UICategoryDescription") names = cd.getElementNames() txt = "" for i = 0 to ubound(names) step 1 txt = txt & "'" & names(i) & "'" & chr(10) next msgbox txt End Sub com.sun.star.frame.UICommandDescription has the same problem.
Created attachment 79708 [details] Patch to fix this problem, increment n in the while loop This problem is happen because n is not incremented in the while loop to fill sequence with elements. The above basic code can be used to verify this patch.
I'm adding this comment to all open issues with Issue Type == PATCH. We have 220 such issues, many of them quite old. I apologize for that. We need your help in prioritizing which patches should be integrated into our next release, Apache OpenOffice 4.0. If you have submitted a patch and think it is applicable for AOO 4.0, please respond with a comment to let us know. On the other hand, if the patch is no longer relevant, please let us know that as well. If you have any general questions or want to discuss this further, please send a note to our dev mailing list: dev@openoffice.apache.org Thanks! -Rob
"hanya" committed SVN revision 1556463 into trunk: #i118909# fix empty elements of return value in UICategoryDescription::getEle...
Fixed in trunk. The fix can be confirmed with the small macro written in the report description.