summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorNoel Power <npower@openoffice.org>2003-10-15 07:36:44 +0000
committerNoel Power <npower@openoffice.org>2003-10-15 07:36:44 +0000
commita2928d1e2ad0374d78795765273349811006ee00 (patch)
treefd137c907f6a21544017f65f585e9bf235cfc74a /scripting
parent523410191cee137ccea76c603525add921282538 (diff)
#i21216#
Change masterscript provider to set up the invocation context correctly for the case where a new document is used.
Diffstat (limited to 'scripting')
-rwxr-xr-xscripting/source/provider/MasterScriptProvider.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx
index fbe1d3a68a9f..d2c28c3c682f 100755
--- a/scripting/source/provider/MasterScriptProvider.cxx
+++ b/scripting/source/provider/MasterScriptProvider.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: MasterScriptProvider.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: npower $ $Date: 2003-09-15 14:32:37 $
+ * last change: $Author: npower $ $Date: 2003-10-15 08:36:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -255,7 +255,6 @@ throw ( Exception, RuntimeException )
{
OSL_TRACE("Creating MSP for document, url is %s",
::rtl::OUStringToOString( url , RTL_TEXTENCODING_ASCII_US ).pData->buffer );
- invokeArgs[ 0 ] <<= m_XScriptingContext;
// If document url is valid (i.e. pointing to a document) we want to get
// the StorageManager to create a storage component, this will be done
// by the document in the next rev.
@@ -309,6 +308,7 @@ throw ( Exception, RuntimeException )
propValUrl );
m_XScriptingContext->setPropertyValue( scriptingConstantsPool.DOC_STORAGE_ID,
propValSid );
+ invokeArgs[ 0 ] <<= m_XScriptingContext;
}
catch ( beans::UnknownPropertyException & e )