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

guard against missing indent property

Change-Id: I2d3369aed4b242acc936a71ee9be573c1ebc7a8f
üst b7c2e9ae
......@@ -395,15 +395,16 @@ void LwpPara::RegisterStyle()
case PP_LOCAL_INDENT:
{
noIndent = false;
if (!rParaStyle.GetIndent())
OverrideIndent(nullptr,static_cast<LwpParaIndentProperty*>(pProps)->GetIndent(),pOverStyle);
else
LwpIndentOverride *pIndent = static_cast<LwpParaIndentProperty*>(pProps)->GetIndent();
if (pIndent)
{
OverrideIndent(m_pIndentOverride,static_cast<LwpParaIndentProperty*>(pProps)->GetIndent(),pOverStyle);
if (!rParaStyle.GetIndent())
OverrideIndent(nullptr, pIndent, pOverStyle);
else
OverrideIndent(m_pIndentOverride, pIndent, pOverStyle);
}
}
break;
}
case PP_LOCAL_SPACING:
{
noSpacing = false;
......
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