diff options
Diffstat (limited to 'sfx2/source/view/topfrm.cxx')
-rw-r--r-- | sfx2/source/view/topfrm.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sfx2/source/view/topfrm.cxx b/sfx2/source/view/topfrm.cxx index 9958ccdfb2..a7b2bd217f 100644 --- a/sfx2/source/view/topfrm.cxx +++ b/sfx2/source/view/topfrm.cxx @@ -844,7 +844,10 @@ sal_Bool SfxTopFrame::InsertDocument( SfxObjectShell* pDoc ) if ( GetCurrentDocument() != pDoc ) // something went wrong during insertion return sal_False; - pDoc->OwnerLock( sal_False ); + + if( !pImp->bHidden ) + pDoc->OwnerLock( sal_False ); + return sal_True; } |