summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-17 09:55:30 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-17 14:48:00 +0000
commitb21b723c7c6ee06439200631f65ab0a39d42bbb4 (patch)
tree40885f8609c701bb97c0db07dadfb00859d96a74 /lotuswordpro
parent10bde6bcffc2caee731fe4c8f7f946eae6b496e4 (diff)
coverity#738972 rework to help coverity out
Change-Id: I288eb5ba7a38844af1b517ae7480729c236ebd63
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpfrib.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwpfrib.cxx b/lotuswordpro/source/filter/lwpfrib.cxx
index aca528b75fbd..1d614aa77414 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);
- IXFStyle *pNewStyle = aNewStyle.m_pStyle;
- m_StyleName = pNewStyle->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);
- IXFStyle *pNewStyle = aNewStyle.m_pStyle;
- m_StyleName = pNewStyle->GetStyleName();
+ pStyle = dynamic_cast<XFTextStyle*>(aNewStyle.m_pStyle);
+ m_StyleName = pStyle->GetStyleName();
if (aNewStyle.m_bOrigDeleted)
pStyle = NULL;
}