summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-08-29 11:43:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-08-29 21:57:10 +0200
commit79cfd48dae2b986b691bb00a8400c7e9cc2cdda7 (patch)
tree76fc782eefaaa82859ed753733fe4eb1d77aa863 /svx
parentc82e5db9626e4d84300f84842b837e852be828be (diff)
Resolves: tdf#112017 crash on particular odt
Change-Id: I6ba2e73562a16afecb6abdfe4f1a40b1e316379e Reviewed-on: https://gerrit.libreoffice.org/41685 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/unodraw/unoshape.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index 161bf34b1d8a..3c5b88860df4 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -3034,7 +3034,8 @@ void SvxShape::setAllPropertiesToDefault()
mpObj->SetMergedItem(Svx3DCharacterModeItem(true));
}
- mpModel->SetChanged();
+ if (mpModel)
+ mpModel->SetChanged();
}
void SvxShape::setPropertiesToDefault(