diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2009-11-20 15:17:30 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2009-11-20 15:17:30 +0100 |
commit | 03bc1e04ab5e0c8a509dcb09d92f22f7d709a48b (patch) | |
tree | d7c80ade2aff3dbe41724a1acf1d372bdf706cf5 /sfx2/source/appl/appopen.cxx | |
parent | 9ffdbe952484194e31780f6d73118bbcaf2ffe11 (diff) |
[CWS autorecovery] removed some unused SfxFrame methods
Diffstat (limited to 'sfx2/source/appl/appopen.cxx')
-rw-r--r-- | sfx2/source/appl/appopen.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx index 17b7b432eb..adca56638c 100644 --- a/sfx2/source/appl/appopen.cxx +++ b/sfx2/source/appl/appopen.cxx @@ -711,7 +711,9 @@ const SfxPoolItem* SfxApplication::NewDocDirectExec_ImplOld( SfxRequest& rReq ) if ( pFrame->GetCurrentDocument() != xDoc ) { - if ( pFrame->InsertDocument( xDoc ) ) + SfxTopFrame* pTopFrame = dynamic_cast< SfxTopFrame* >( pFrame ); + OSL_ENSURE( pTopFrame, "An SfxFrame which is no SfxTopFrame?!" ); + if ( pTopFrame && pTopFrame->InsertDocument_Impl( *xDoc ) ) rReq.SetReturnValue( SfxFrameItem( 0, pFrame ) ); else xDoc->DoClose(); |