summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-05-20 14:55:40 +0200
committerAndras Timar <andras.timar@collabora.com>2014-05-21 16:43:27 +0200
commiteeac58b5261e80ded0381e2be7f1fa3e6f0e9bb4 (patch)
tree5fe2c1e9a538e5a3ef1113946633f10f3f139cf1
parentanother build fix (diff)
downloadcore-eeac58b5261e80ded0381e2be7f1fa3e6f0e9bb4.tar.gz
core-eeac58b5261e80ded0381e2be7f1fa3e6f0e9bb4.zip
Use varying aElement name
Change-Id: Idc135ef5031a01961cc18d897a734b598bc833f4
-rw-r--r--sfx2/source/doc/docmacromode.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/docmacromode.cxx b/sfx2/source/doc/docmacromode.cxx
index 39d2b6d26260..8f87197b9126 100644
--- a/sfx2/source/doc/docmacromode.cxx
+++ b/sfx2/source/doc/docmacromode.cxx
@@ -343,7 +343,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 sal_True;