summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-09 16:21:38 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-09 16:21:52 +0000
commitae94fc5b28105c920b2e9d336f463b27cae5b0e1 (patch)
tree33427b89bc2ae834a4ee4fabc42de78ffaa6c0c4 /lotuswordpro
parentb7c2e9ae95ff41570f752ca43c361b249a65da77 (diff)
guard against missing indent property
Change-Id: I2d3369aed4b242acc936a71ee9be573c1ebc7a8f
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwppara.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/lotuswordpro/source/filter/lwppara.cxx b/lotuswordpro/source/filter/lwppara.cxx
index 4d56fc800dcb..f42c030dd25d 100644
--- a/lotuswordpro/source/filter/lwppara.cxx
+++ b/lotuswordpro/source/filter/lwppara.cxx
@@ -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;