diff options
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; |