summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Voytenko <mav@openoffice.org>2010-03-19 10:00:39 +0100
committerMikhail Voytenko <mav@openoffice.org>2010-03-19 10:00:39 +0100
commit41aef1fb9539a63aa159e3b6033ba92e43d892e7 (patch)
tree5d753bb705b6ae28d385edb11c2075f7399e47ff
parent0822cd8af229e863e2fd317af04d5fd79279c1a3 (diff)
sw321bf01: #i109183# Hidden view of a document should not control OwnerLock
-rw-r--r--sfx2/source/view/topfrm.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sfx2/source/view/topfrm.cxx b/sfx2/source/view/topfrm.cxx
index bf88a5775d..358af31565 100644
--- a/sfx2/source/view/topfrm.cxx
+++ b/sfx2/source/view/topfrm.cxx
@@ -847,7 +847,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;
}