summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2013-04-30 11:20:01 +0200
committerTor Lillqvist <tml@iki.fi>2013-04-30 09:28:32 +0000
commit0252a22c43ec6d676c7d9a7ded0ec7064dede7c1 (patch)
tree66dd29bbd99f73c63a1688a2905bcdc1b3d2642f
parent728220af3af776e1a759b6051b669e87c511362d (diff)
Fix fdo#64062 - can't assume para styles to be there.
Change-Id: I5da53ff44fdf00ec6c0fdf1a722f806971b6683a Reviewed-on: https://gerrit.libreoffice.org/3694 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
-rw-r--r--xmloff/source/text/txtimp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx
index b48225aac68d..3abafb5fd3f7 100644
--- a/xmloff/source/text/txtimp.cxx
+++ b/xmloff/source/text/txtimp.cxx
@@ -1803,7 +1803,7 @@ OUString XMLTextImportHelper::SetStyleAndAttrs(
style, if it has no direct list style property and (if exists) the
automatic paragraph style has also no direct list style set.
*/
- if (m_pImpl->m_xParaStyles->hasByName(sStyleName))
+ if (m_pImpl->m_xParaStyles.is() && m_pImpl->m_xParaStyles->hasByName(sStyleName))
{
bool bOutlineStyleCandidate( false );