diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-26 13:44:31 +0100 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-04-05 16:37:43 +0200 |
commit | 2446ae942b2ca35c9f727fb15ef5ec8d248b55c5 (patch) | |
tree | 852a2d7d3aa3e9ef22f6050f43785bfddbada8f5 | |
parent | ee9d80d6d93afe914097b3f1835777052cc0000d (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>
-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 90682874db1b..38cca471876f 100644 --- a/sc/source/filter/xml/xmlcelli.cxx +++ b/sc/source/filter/xml/xmlcelli.cxx @@ -367,6 +367,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*>( |