guard against missing indent property
Change-Id: I2d3369aed4b242acc936a71ee9be573c1ebc7a8f
This commit is contained in:
@@ -395,15 +395,16 @@ void LwpPara::RegisterStyle()
|
|||||||
case PP_LOCAL_INDENT:
|
case PP_LOCAL_INDENT:
|
||||||
{
|
{
|
||||||
noIndent = false;
|
noIndent = false;
|
||||||
if (!rParaStyle.GetIndent())
|
LwpIndentOverride *pIndent = static_cast<LwpParaIndentProperty*>(pProps)->GetIndent();
|
||||||
OverrideIndent(nullptr,static_cast<LwpParaIndentProperty*>(pProps)->GetIndent(),pOverStyle);
|
if (pIndent)
|
||||||
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
OverrideIndent(m_pIndentOverride,static_cast<LwpParaIndentProperty*>(pProps)->GetIndent(),pOverStyle);
|
if (!rParaStyle.GetIndent())
|
||||||
|
OverrideIndent(nullptr, pIndent, pOverStyle);
|
||||||
|
else
|
||||||
|
OverrideIndent(m_pIndentOverride, pIndent, pOverStyle);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case PP_LOCAL_SPACING:
|
case PP_LOCAL_SPACING:
|
||||||
{
|
{
|
||||||
noSpacing = false;
|
noSpacing = false;
|
||||||
|
Reference in New Issue
Block a user