diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-18 09:11:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-18 09:11:46 +0000 |
commit | 5c339be474c93c0bf42c593b48fd683ea4614250 (patch) | |
tree | a1c87141bb2d74377504f27c08c834d097b7800e /lotuswordpro | |
parent | b759504c9fb0e505b921c12c5968dba7cec7ae10 (diff) |
tweak for future null deref warning
Change-Id: I38590e08a6bd03a2ddfeda466b9cee7128c62aa7
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpfrib.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpfrib.cxx b/lotuswordpro/source/filter/lwpfrib.cxx index 1d614aa77414..bc404aacc40f 100644 --- a/lotuswordpro/source/filter/lwpfrib.cxx +++ b/lotuswordpro/source/filter/lwpfrib.cxx @@ -263,8 +263,8 @@ void LwpFrib::RegisterStyle(LwpFoundry* pFoundry) pFont = pFoundry->GetFontManger().CreateOverrideFont(pCharStyle->GetFinalFontID(),m_pModifiers->FontID); pStyle->SetFont(pFont); IXFStyleRet aNewStyle = pXFStyleManager->AddStyle(pStyle); + m_StyleName = aNewStyle.m_pStyle->GetStyleName(); pStyle = dynamic_cast<XFTextStyle*>(aNewStyle.m_pStyle); - m_StyleName = pStyle->GetStyleName(); if (aNewStyle.m_bOrigDeleted) pStyle = NULL; } @@ -279,8 +279,8 @@ void LwpFrib::RegisterStyle(LwpFoundry* pFoundry) pFont = pFoundry->GetFontManger().CreateFont(m_pModifiers->FontID); pStyle->SetFont(pFont); IXFStyleRet aNewStyle = pXFStyleManager->AddStyle(pStyle); + m_StyleName = aNewStyle.m_pStyle->GetStyleName(); pStyle = dynamic_cast<XFTextStyle*>(aNewStyle.m_pStyle); - m_StyleName = pStyle->GetStyleName(); if (aNewStyle.m_bOrigDeleted) pStyle = NULL; } |