diff options
Diffstat (limited to 'starmath/source/unodoc.cxx')
-rw-r--r-- | starmath/source/unodoc.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/starmath/source/unodoc.cxx b/starmath/source/unodoc.cxx index 4f0205f5cd38..aa322f9b6810 100644 --- a/starmath/source/unodoc.cxx +++ b/starmath/source/unodoc.cxx @@ -59,14 +59,9 @@ uno::Reference< uno::XInterface > SAL_CALL SmDocument_createInstance( const uno::Reference< lang::XMultiServiceFactory > & /*rSMgr*/, const sal_uInt64 _nCreationFlags ) throw( uno::Exception ) { SolarMutexGuard aGuard; - if ( !SM_MOD() ) - SmDLL::Init(); - + SmGlobals::ensure(); SfxObjectShell* pShell = new SmDocShell( _nCreationFlags ); - if( pShell ) - return uno::Reference< uno::XInterface >( pShell->GetModel() ); - - return uno::Reference< uno::XInterface >(); + return uno::Reference< uno::XInterface >( pShell->GetModel() ); } |