diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-11-18 12:19:18 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-11-18 12:19:18 +0100 |
commit | fd08abb5941f6815f8a49ae50e7fc93d93609543 (patch) | |
tree | 364544ca1502c422ea19ef14482e01fd1fe04d3c /sfx2/source | |
parent | b150000278891a4bce875502de1265f507ed8958 (diff) |
Don't try lockfile creation when getting medium already failed
Change-Id: Idbca79b5224358eaaef040365b2b385f2e2af9dd
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 1b808edfd398..3d23f50bc141 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -1063,6 +1063,9 @@ void SfxMedium::LockOrigFileOnDemand( sal_Bool bLoading, sal_Bool bNoUI ) { // let the stream be opened to check the system file locking GetMedium_Impl(); + if (GetError() != ERRCODE_NONE) { + return; + } } sal_Int8 bUIStatus = LOCK_UI_NOLOCK; |