[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - lotuswordpro/source
Caolán McNamara
caolanm at redhat.com
Wed Dec 23 11:56:11 PST 2015
lotuswordpro/source/filter/lwpfribtable.cxx | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
New commits:
commit 3968eec7145d20b398a196bf72ce51f16cebae9e
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Dec 22 20:09:17 2015 +0000
guard against missing ContentContainer
Change-Id: I4f2c5d53148deb02d990edc42140c23f02409cea
(cherry picked from commit 8a05b74eeb8d5e0955fbe3cefd945cdc9bffa3f5)
(cherry picked from commit e439aebde0f60e7fe9bb19e96964eb3d26e50e3c)
Reviewed-on: https://gerrit.libreoffice.org/20884
Reviewed-by: David Tardon <dtardon at redhat.com>
Tested-by: David Tardon <dtardon at redhat.com>
diff --git a/lotuswordpro/source/filter/lwpfribtable.cxx b/lotuswordpro/source/filter/lwpfribtable.cxx
index 6066592..9b69ac7 100644
--- a/lotuswordpro/source/filter/lwpfribtable.cxx
+++ b/lotuswordpro/source/filter/lwpfribtable.cxx
@@ -112,7 +112,7 @@ void LwpFribTable::XFConvert(XFContentContainer* pCont)
pXFContentContainer = m_pPara->GetXFContainer();
//delete the additional blank para, 06/28/2005
XFParagraph* pCurrPara = m_pPara->GetFribs().GetXFPara();
- if(!pCurrPara->HasContents())
+ if (pXFContentContainer && !pCurrPara->HasContents())
{
if(pXFContentContainer->GetLastContent() == pCurrPara)
{
@@ -144,18 +144,20 @@ void LwpFribTable::XFConvert(XFContentContainer* pCont)
LwpGlobalMgr* pGlobal = LwpGlobalMgr::GetInstance();
LwpChangeMgr* pChangeMgr = pGlobal->GetLwpChangeMgr();
sChangeID = pChangeMgr->GetChangeID(this);
- if (!sChangeID.isEmpty())
+ if (!sChangeID.isEmpty() && pXFContentContainer)
{
XFChangeStart* pChangeStart = new XFChangeStart;
pChangeStart->SetChangeID(sChangeID);
pXFContentContainer->Add(pChangeStart);
}
}
- pSuper->XFConvert(pXFContentContainer);
+
+ if (pXFContentContainer)
+ pSuper->XFConvert(pXFContentContainer);
if(m_bRevisionFlag)
{
- if (!sChangeID.isEmpty())
+ if (!sChangeID.isEmpty() && pXFContentContainer)
{
XFChangeEnd* pChangeEnd = new XFChangeEnd;
pChangeEnd->SetChangeID(sChangeID);
More information about the Libreoffice-commits
mailing list