summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/doc/docfile.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index c48be3a45088..bd2fca7cecfe 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -829,6 +829,12 @@ sal_Int8 SfxMedium::ShowLockedDocumentDialog( const LockFileEntry& aData, bool b
{
sal_Int8 nResult = LOCK_UI_NOLOCK;
+ if( aData[LockFileComponent::OOOUSERNAME] == aData[LockFileComponent::SYSUSERNAME] ||
+ aData[LockFileComponent::OOOUSERNAME].isEmpty() ||
+ aData[LockFileComponent::SYSUSERNAME].isEmpty()
+ )
+ bOwnLock=true;
+
// show the interaction regarding the document opening
uno::Reference< task::XInteractionHandler > xHandler = GetInteractionHandler();