summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorAndre Fischer <af@openoffice.org>2010-06-29 16:13:34 +0200
committerAndre Fischer <af@openoffice.org>2010-06-29 16:13:34 +0200
commitb6e30719dde5f67290a1b77891d3435ee7da2f9e (patch)
tree9f1d3805074a8435cd309d434f5ea37918b662eb /sfx2
parent34dd33af79caf3a13ec3a4e7098616ac0b16cf50 (diff)
impress193: #i112647# Integrated diff from MAV.
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/frame2.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sfx2/source/view/frame2.cxx b/sfx2/source/view/frame2.cxx
index d99ad8733e03..d43512ac791d 100644
--- a/sfx2/source/view/frame2.cxx
+++ b/sfx2/source/view/frame2.cxx
@@ -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,