[Libreoffice-bugs] [Bug 32324] Bug in ConfigAccess for toolbars

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Dec 17 17:07:57 CET 2010


https://bugs.freedesktop.org/show_bug.cgi?id=32324

--- Comment #1 from Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr> 2010-12-17 08:07:57 PST ---
(In reply to comment #0)
> With this code :
> oAddon = oConfigAccess.getByName("org.openoffice.Office.addon.DMathsBarre")
> For I = LBound(oAddon.ElementNames()) To UBound(oAddon.ElementNames())
> oAddon.ElementNames(I)
> Next I
> 
> I only get impair numbers : btn01, btn03, btn05, btn07 ...
> and not btn02, btn 04 ...

I can reproduce that bug, and most strangely, when you comment out this line
all the element names are printed:

oAddon.getByname(oAddon.ElementNames(I)).ImageIdentifier =
Mid(LaChaine,1,Len(LaChaine)-NbreCarac) & NomIcone(I)

Inspecting what is in the oAddon.ElementNames() shows all the values. The bug
seems to lye in this line.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Libreoffice-bugs mailing list