summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwptablelayout.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx
index 90897ad92c37..99d8b1872a11 100644
--- a/lotuswordpro/source/filter/lwptablelayout.cxx
+++ b/lotuswordpro/source/filter/lwptablelayout.cxx
@@ -1201,13 +1201,17 @@ void LwpTableLayout::PostProcessParagraph(XFCell *pCell, sal_uInt16 nRowID, sal_
}
XFParaStyle * pStyle = pXFStyleManager->FindParaStyle(pXFPara->GetStyleName());
- if (pStyle->GetNumberRight() || bColorMod)
+ if ((pStyle && pStyle->GetNumberRight()) || bColorMod)
{
XFParaStyle* pOverStyle = new XFParaStyle;
- *pOverStyle = *pStyle;
- if (pStyle->GetNumberRight())
- pOverStyle->SetAlignType(enumXFAlignEnd);
+ if (pStyle)
+ {
+ *pOverStyle = *pStyle;
+
+ if (pStyle->GetNumberRight())
+ pOverStyle->SetAlignType(enumXFAlignEnd);
+ }
if (bColorMod)
{