summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-08-29 11:43:42 +0100
committerMichael Stahl <mstahl@redhat.com>2017-08-30 10:11:53 +0200
commit9c781148593b71eaca1798d4415f63d8bc289899 (patch)
tree20224e47e00ef7a1e50abbf7df6d25b081f79db2
parent7040862125fb1d805286771c26f6b51396cfb145 (diff)
Resolves: tdf#112017 crash on particular odt
Change-Id: I6ba2e73562a16afecb6abdfe4f1a40b1e316379e Reviewed-on: https://gerrit.libreoffice.org/41711 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--svx/source/unodraw/unoshape.cxx3
-rw-r--r--sw/qa/core/data/odt/pass/tdf112017.odtbin0 -> 1988 bytes
2 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index 7cc707c7f510..784f4673bff7 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -3043,7 +3043,8 @@ void SvxShape::setAllPropertiesToDefault()
mpObj->SetMergedItem(Svx3DCharacterModeItem(true));
}
- mpModel->SetChanged();
+ if (mpModel)
+ mpModel->SetChanged();
}
void SvxShape::setPropertiesToDefault(
diff --git a/sw/qa/core/data/odt/pass/tdf112017.odt b/sw/qa/core/data/odt/pass/tdf112017.odt
new file mode 100644
index 000000000000..02a24d9db146
--- /dev/null
+++ b/sw/qa/core/data/odt/pass/tdf112017.odt
Binary files differ