summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-05-20 14:55:40 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-05-22 19:20:57 +0200
commitc4fc6ae7e4b1e10c805c057564ccd4753249fce0 (patch)
tree3aefa76cd986136c4d358a38b4a23ca8879929f8
parent9d2b0fd3424eaf8a685728aa7788e1148159714d (diff)
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 7082bc44ec4d..00efbfbbefef 100644
--- a/sfx2/source/doc/docmacromode.cxx
+++ b/sfx2/source/doc/docmacromode.cxx
@@ -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 sal_True;