diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-12 21:13:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-12 21:13:29 +0000 |
commit | 25632b8ffe53dd18faaab2f5c019f7a401ebf579 (patch) | |
tree | 422f6ac1b1792426c4ba55a69cde709eb73c1a1d /lotuswordpro | |
parent | d4c22dbb1c9d71bb83c218d339df83e8727e469c (diff) |
this cast needs to be dynamic
Change-Id: I6d02cc8dc894ef7e2903874b0ab973f7f1b3225d
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwptoc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwptoc.cxx b/lotuswordpro/source/filter/lwptoc.cxx index 3f31da26e409..4857e945baee 100644 --- a/lotuswordpro/source/filter/lwptoc.cxx +++ b/lotuswordpro/source/filter/lwptoc.cxx @@ -131,7 +131,7 @@ void LwpTocSuperLayout::RegisterStyle() // Get font info of default text style and set into tab style const LwpObjectID *pDefaultTextStyle = m_pFoundry ? m_pFoundry->GetDefaultTextStyle() : nullptr; - XFParaStyle* pBaseStyle = pDefaultTextStyle ? static_cast<XFParaStyle*>(m_pFoundry->GetStyleManager()->GetStyle(*pDefaultTextStyle)) : nullptr; + XFParaStyle* pBaseStyle = pDefaultTextStyle ? dynamic_cast<XFParaStyle*>(m_pFoundry->GetStyleManager()->GetStyle(*pDefaultTextStyle)) : nullptr; XFTextStyle*pTextStyle = new XFTextStyle; if (pBaseStyle) pTextStyle->SetFont(pBaseStyle->GetFont()); // who delete this font????? |