diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-08-29 11:43:42 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-08-30 10:14:46 +0200 |
commit | 932a81e9c31a3a5bf5edad3d9e79b111e19b113d (patch) | |
tree | a6290aa368d2ae5b81192af400f31a0877e0a528 /svx | |
parent | a2fb0739bd1a9823f9b52f8efabae0bcf9ff6b0c (diff) |
Resolves: tdf#112017 crash on particular odt
Change-Id: I6ba2e73562a16afecb6abdfe4f1a40b1e316379e
Reviewed-on: https://gerrit.libreoffice.org/41712
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/unodraw/unoshape.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index a93e1eb3b973..76d0dd22a97f 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -3069,7 +3069,8 @@ void SvxShape::setAllPropertiesToDefault() throw (uno::RuntimeException, std::ex mpObj->SetMergedItem(Svx3DCharacterModeItem(true)); } - mpModel->SetChanged(); + if (mpModel) + mpModel->SetChanged(); } void SvxShape::setPropertiesToDefault( |