Kaydet (Commit) 25632b8f authored tarafından Caolán McNamara's avatar Caolán McNamara

this cast needs to be dynamic

Change-Id: I6d02cc8dc894ef7e2903874b0ab973f7f1b3225d
üst d4c22dbb
......@@ -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?????
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment