diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-26 13:44:31 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-04-07 17:45:29 +0200 |
commit | 383d810b5cc1288b32deb3138a25f7d11b9f582d (patch) | |
tree | eabe6bdafb8917ab82931a8136910ad3336a12be | |
parent | f5de8e4d0f7b2b599bc75816a4b6fb61313af118 (diff) |
forcepoint #34 survive missing autostyles
Change-Id: I742816297659d614e836a8d5e8965b1c55154719
Reviewed-on: https://gerrit.libreoffice.org/51892
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
(cherry picked from commit 2446ae942b2ca35c9f727fb15ef5ec8d248b55c5)
-rw-r--r-- | sc/source/filter/xml/xmlcelli.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx index 9724b46bf6cc..3eda9d9c4f5b 100644 --- a/sc/source/filter/xml/xmlcelli.cxx +++ b/sc/source/filter/xml/xmlcelli.cxx @@ -365,6 +365,8 @@ void ScXMLTableRowCellContext::PushFormat(sal_Int32 nBegin, sal_Int32 nEnd, cons sal_Int32 nEntryCount = xMapper->GetEntryCount(); SvXMLStylesContext* pAutoStyles = GetImport().GetAutoStyles(); + if (!pAutoStyles) + return; // Style name for text span corresponds with the name of an automatic style. const XMLPropStyleContext* pStyle = dynamic_cast<const XMLPropStyleContext*>( |