tdf#90028 avoid crash if style is not found
Change-Id: I4ffc8cdcb67ecb4c4afa641c9219dd465fe13d29
This commit is contained in:
@@ -1201,13 +1201,17 @@ void LwpTableLayout::PostProcessParagraph(XFCell *pCell, sal_uInt16 nRowID, sal_
|
|||||||
}
|
}
|
||||||
|
|
||||||
XFParaStyle * pStyle = pXFStyleManager->FindParaStyle(pXFPara->GetStyleName());
|
XFParaStyle * pStyle = pXFStyleManager->FindParaStyle(pXFPara->GetStyleName());
|
||||||
if (pStyle->GetNumberRight() || bColorMod)
|
if ((pStyle && pStyle->GetNumberRight()) || bColorMod)
|
||||||
{
|
{
|
||||||
XFParaStyle* pOverStyle = new XFParaStyle;
|
XFParaStyle* pOverStyle = new XFParaStyle;
|
||||||
|
|
||||||
|
if (pStyle)
|
||||||
|
{
|
||||||
*pOverStyle = *pStyle;
|
*pOverStyle = *pStyle;
|
||||||
|
|
||||||
if (pStyle->GetNumberRight())
|
if (pStyle->GetNumberRight())
|
||||||
pOverStyle->SetAlignType(enumXFAlignEnd);
|
pOverStyle->SetAlignType(enumXFAlignEnd);
|
||||||
|
}
|
||||||
|
|
||||||
if (bColorMod)
|
if (bColorMod)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user