summaryrefslogtreecommitdiff
path: root/sfx2/source/view/frmload.cxx
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2009-12-03 09:29:45 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2009-12-03 09:29:45 +0100
commit6732980b94b87b23d7565ac04847ef70bf58d565 (patch)
treefcf2a2d8dbd05455fd778c00ee4f67a0a7782adc /sfx2/source/view/frmload.cxx
parent5b4f0e7f834b27ddb0bdfece3786ced33c3917dd (diff)
[CWS autorecovery] somewhat separated the 'switch view shell on SFX level' from the 'load new document on UNO level' case
Diffstat (limited to 'sfx2/source/view/frmload.cxx')
-rw-r--r--sfx2/source/view/frmload.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/view/frmload.cxx b/sfx2/source/view/frmload.cxx
index cde8265a1842..a8c6e9ae5f03 100644
--- a/sfx2/source/view/frmload.cxx
+++ b/sfx2/source/view/frmload.cxx
@@ -565,11 +565,6 @@ sal_Bool SAL_CALL SfxFrameLoader_Impl::load( const Sequence< PropertyValue >& rA
// the latter.
}
- // create a frame
- SfxFrame* pTargetFrame = SfxFrame::Create( _rTargetFrame );
- ENSURE_OR_THROW( pTargetFrame, "could not create an SfxFrame" );
- wFrame = pTargetFrame;
-
// get the SfxObjectShell (still needed at the moment)
SfxObjectShellLock xDoc = impl_findObjectShell( xModel );
ENSURE_OR_THROW( xDoc.Is(), "no SfxObjectShell for the given model" );
@@ -584,6 +579,11 @@ sal_Bool SAL_CALL SfxFrameLoader_Impl::load( const Sequence< PropertyValue >& rA
// code at the very end of this method cares for closing the XModel, which should also close the
// ObjectShell.
+ // create a frame
+ SfxFrame* pTargetFrame = SfxFrame::Create( _rTargetFrame );
+ ENSURE_OR_THROW( pTargetFrame, "could not create an SfxFrame" );
+ wFrame = pTargetFrame;
+
// insert the document into the frame
if ( !impl_plugDocIntoFrame( aDescriptor, *pTargetFrame, *xDoc ) )
throw RuntimeException();