Use varying aElement name

Change-Id: Idc135ef5031a01961cc18d897a734b598bc833f4
This commit is contained in:
Stephan Bergmann
2014-05-20 14:55:40 +02:00
parent 4d2113250f
commit 1b0402f87c

View File

@@ -342,7 +342,7 @@ namespace sfx2
if( aElement == aStdLibName || aElement == aVBAProject )
{
Reference < XNameAccess > xLib;
Any aAny = xContainer->getByName( aStdLibName );
Any aAny = xContainer->getByName( aElement );
aAny >>= xLib;
if ( xLib.is() && xLib->hasElements() )
return true;