From 4108bd9b7a41eaa0f3bf8b8173f27f57e009ee34 Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Tue, 30 Sep 2014 14:37:59 -0400 Subject: fdo#71248 Excel VBA: ActiveDocument is not tracking currently selected Doc Change-Id: I86606646206ec26e2822a6e27888537d44351b7b Reviewed-on: https://gerrit.libreoffice.org/11725 Reviewed-by: Samuel Mehrbrodt Tested-by: Samuel Mehrbrodt --- sfx2/source/doc/objxtor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfx2/source') diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx index 92c5a1d60e79..dcb115d84624 100644 --- a/sfx2/source/doc/objxtor.cxx +++ b/sfx2/source/doc/objxtor.cxx @@ -131,7 +131,7 @@ OString lclGetVBAGlobalConstName( const Reference< XInterface >& rxComponent ) if( xProps.is() ) try { OUString aConstName; - xProps->getPropertyValue("ThisVBADocObj") >>= aConstName; + xProps->getPropertyValue("VBAGlobalConstantName") >>= aConstName; return OUStringToOString( aConstName, RTL_TEXTENCODING_ASCII_US ); } catch (const uno::Exception&) // not supported -- cgit