diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-23 15:33:36 +0000 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-12-24 09:44:59 +0000 |
commit | ec066b44392f8ed1015540220b6b4620facd873e (patch) | |
tree | 550b4ca87c5f373f8807a90cd7b96b2a4a7ec344 /lotuswordpro | |
parent | 3968eec7145d20b398a196bf72ce51f16cebae9e (diff) |
guard against missing DropcapMgr and Foundry
Change-Id: I1007d4fac2514bc165941c70109cd8e3d57153cd
(cherry picked from commit 330127baf96c417e0eeaef9808d124788b547cf3)
(cherry picked from commit e616ff7e29ee10d0c3ea2dc6a8fc135b87b572b7)
Reviewed-on: https://gerrit.libreoffice.org/20910
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpfribptr.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpfribptr.cxx b/lotuswordpro/source/filter/lwpfribptr.cxx index 79486a2d474c..e69b50832818 100644 --- a/lotuswordpro/source/filter/lwpfribptr.cxx +++ b/lotuswordpro/source/filter/lwpfribptr.cxx @@ -288,10 +288,15 @@ void LwpFribPtr::XFConvert() LwpFribFrame* frameFrib= static_cast<LwpFribFrame*>(pFrib); rtl::Reference<LwpObject> pLayout = frameFrib->GetLayout(); if (pLayout.is() && pLayout->GetTag() == VO_DROPCAPLAYOUT) - m_pPara->GetFoundry()->GetDropcapMgr()->SetXFPara(m_pXFPara); + { + LwpFoundry* pFoundry = m_pPara->GetFoundry(); + LwpDropcapMgr* pMgr = pFoundry ? pFoundry->GetDropcapMgr() : nullptr; + if (pMgr) + pMgr->SetXFPara(m_pXFPara); + } frameFrib->XFConvert(m_pXFPara); - } break; + } case FRIB_TAG_CHBLOCK: { LwpFribCHBlock* chbFrib = static_cast<LwpFribCHBlock*>(pFrib); |