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

Resolves: tdf#93818 crash on loading certain lwp

Change-Id: I11f523a0936b843155f3b47139d0fc58d4d0342b
üst a42f582e
......@@ -245,10 +245,14 @@ void LwpFrib::RegisterStyle(LwpFoundry* pFoundry)
XFTextStyle* pStyle = NULL;
m_StyleName.clear();
XFStyleManager* pXFStyleManager = LwpGlobalMgr::GetInstance()->GetXFStyleManager();
XFTextStyle* pNamedStyle = nullptr;
if (m_pModifiers->HasCharStyle)
{
XFTextStyle* pNamedStyle = static_cast<XFTextStyle*>
pNamedStyle = static_cast<XFTextStyle*>
(pFoundry->GetStyleManager()->GetStyle(m_pModifiers->CharStyleID));
}
if (pNamedStyle)
{
if (m_pModifiers->FontID)
{
pStyle = new XFTextStyle();
......
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