summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2010-07-21 15:47:51 +0200
committerJens-Heiner Rechtien <hr@openoffice.org>2010-07-21 15:47:51 +0200
commit3d7da49196d04ad091f66528edb6efa3b36972cd (patch)
treea0627abfe0000ce4dc3725c57dec6a52cddce9d9 /sfx2
parent4e8910c5cd00dac7076522223c42e5839db584e2 (diff)
parente757c3c7660317353f4341b2b274dcb64d37d3e7 (diff)
CWS-TOOLING: integrate CWS impress193
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,