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

guard against missing Foundry

Change-Id: I7e76589689d2c9e79a8823d594e8f3ca030e26cf
üst f513a173
......@@ -130,7 +130,7 @@ void LwpTocSuperLayout::RegisterStyle()
LwpSuperTableLayout::RegisterStyle();
// Get font info of default text style and set into tab style
const LwpObjectID *pDefaultTextStyle = m_pFoundry->GetDefaultTextStyle();
const LwpObjectID *pDefaultTextStyle = m_pFoundry ? m_pFoundry->GetDefaultTextStyle() : nullptr;
XFParaStyle* pBaseStyle = pDefaultTextStyle ? static_cast<XFParaStyle*>(m_pFoundry->GetStyleManager()->GetStyle(*pDefaultTextStyle)) : nullptr;
XFTextStyle*pTextStyle = new XFTextStyle;
if (pBaseStyle)
......
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