[Libreoffice-commits] core.git: Branch 'libreoffice-6-2' - sfx2/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 9 15:12:16 UTC 2019


 sfx2/source/doc/objstor.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 4cce3278dd3f4f882e622aaf0d219063cbae9767
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Aug 9 10:30:51 2019 +0100
Commit:     Michael Stahl <Michael.Stahl at cib.de>
CommitDate: Fri Aug 9 17:11:27 2019 +0200

    Resolves: tdf#126732 don't abort on IOException, just report
    
    Change-Id: Ia68b6e1e603fbc6397645abdf0ea7131a547ad42
    Reviewed-on: https://gerrit.libreoffice.org/77188
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <Michael.Stahl at cib.de>

diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index f1ae5b009231..bc6eb96a94bf 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -2279,6 +2279,11 @@ bool SfxObjectShell::ImportFrom(SfxMedium& rMedium,
                     e.Message, DialogMask::ButtonsOk | DialogMask::MessageError ));
             }
         }
+        catch (const css::io::IOException& e)
+        {
+            SetError(*new StringErrorInfo(ERRCODE_SFX_FORMAT_ROWCOL,
+                e.Message, DialogMask::ButtonsOk | DialogMask::MessageError ));
+        }
         catch (const std::exception& e)
         {
             const char *msg = e.what();


More information about the Libreoffice-commits mailing list