impress193: #i112647# Integrated diff from MAV.

This commit is contained in:
Andre Fischer 2010-06-29 16:13:34 +02:00
parent 34dd33af79
commit b6e30719dd

View file

@ -280,10 +280,7 @@ SfxFrame* SfxFrame::Create( SfxObjectShell& rDoc, Window& rWindow, USHORT nViewI
aLoadArgs = aArgs.getPropertyValues();
// load the doc into that frame
::rtl::OUString sLoaderURL( rDoc.GetModel()->getURL() );
if ( sLoaderURL.getLength() == 0 )
sLoaderURL = rDoc.GetFactory().GetFactoryURL();
::rtl::OUString sLoaderURL( RTL_CONSTASCII_USTRINGPARAM( "private:object" ) );
Reference< XComponentLoader > xLoader( xFrame, UNO_QUERY_THROW );
xLoader->loadComponentFromURL(
sLoaderURL,