sc/source/ui/app/client.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit d4a4c9717abccd04fef9ef032092107bb8fae005 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Nov 19 12:36:09 2019 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Nov 19 22:19:38 2019 +0100 don't crash if a linked to object is deleted after the doc is loaded Change-Id: Ia6ab1261745d223dcf84b638edf6a64d46bc6f4b Reviewed-on: https://gerrit.libreoffice.org/83201 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/source/ui/app/client.cxx b/sc/source/ui/app/client.cxx index 338be8331cfb..b58efdf5218d 100644 --- a/sc/source/ui/app/client.cxx +++ b/sc/source/ui/app/client.cxx @@ -21,6 +21,7 @@ #include <com/sun/star/embed/NoVisualAreaSizeException.hpp> #include <toolkit/helper/vclunohelper.hxx> +#include <tools/diagnose_ex.h> #include <sfx2/objsh.hxx> #include <svx/svditer.hxx> #include <svx/svdobj.hxx> @@ -189,9 +190,9 @@ void ScClient::ViewChanged() awt::Size aSz; try { aSz = xObj->getVisualAreaSize( GetAspect() ); - } catch ( embed::NoVisualAreaSizeException& ) - { - OSL_FAIL("The visual area size must be available!"); + } catch (const uno::Exception&) { + TOOLS_WARN_EXCEPTION("sc", "The visual area size must be available!"); + return; // leave it unchanged on failure } MapUnit aMapUnit = VCLUnoHelper::UnoEmbed2VCLMapUnit( xObj->getMapUnit( GetAspect() ) ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits