summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorDaniel Rentz [dr] <daniel.rentz@oracle.com>2011-03-25 16:51:06 +0100
committerDaniel Rentz [dr] <daniel.rentz@oracle.com>2011-03-25 16:51:06 +0100
commit42d15e4340eeb214cbae81ce7f73a48e8b48c496 (patch)
tree39bcce17c4717bc7915c21d8308cda194b43895f /vbahelper
parent9535e917e9722426e7aa2bb6f37ae10fbb343db2 (diff)
calcvba: sequence index typo
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/vbahelper/vbadocumentbase.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vbahelper/source/vbahelper/vbadocumentbase.cxx b/vbahelper/source/vbahelper/vbadocumentbase.cxx
index ce04e78df1..c0a2a35998 100644
--- a/vbahelper/source/vbahelper/vbadocumentbase.cxx
+++ b/vbahelper/source/vbahelper/vbadocumentbase.cxx
@@ -272,7 +272,7 @@ VbaDocumentBase::getVBProject() throw (uno::RuntimeException)
uno::Reference< XInterface > xVBE( xApp->getVBE(), uno::UNO_QUERY_THROW );
uno::Sequence< uno::Any > aArgs( 2 );
aArgs[ 0 ] <<= xVBE; // the VBE
- aArgs[ 2 ] <<= getModel(); // document model for script container access
+ aArgs[ 1 ] <<= getModel(); // document model for script container access
uno::Reference< lang::XMultiComponentFactory > xServiceManager( mxContext->getServiceManager(), uno::UNO_SET_THROW );
mxVBProject = xServiceManager->createInstanceWithArgumentsAndContext(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ooo.vba.vbide.VBProject" ) ), aArgs, mxContext );