Kaydet (Commit) c73cb50c authored tarafından dinesh_mp's avatar dinesh_mp Kaydeden (comit) Luboš Luňák

fdo#81380: LO crashes while opening the document

LO crashes while opening the document because PropertySet interface
is null and check for this condition was missing, so added the check.

Change-Id: I04dd873ea0923a662e27f9eb2013cde31edc912b
Reviewed-on: https://gerrit.libreoffice.org/10379Reviewed-by: 's avatarLuboš Luňák <l.lunak@collabora.com>
Tested-by: 's avatarLuboš Luňák <l.lunak@collabora.com>
üst 22274468
......@@ -549,7 +549,8 @@ void SectionPropertyMap::ApplyBorderToPageStyles(
sal_uInt32 nLineWidth = 0;
if (m_pBorderLines[nBorder])
nLineWidth = m_pBorderLines[nBorder]->LineWidth;
SetBorderDistance( xFirst, aMarginIds[nBorder], aBorderDistanceIds[nBorder],
if(xFirst.is())
SetBorderDistance( xFirst, aMarginIds[nBorder], aBorderDistanceIds[nBorder],
m_nBorderDistances[nBorder], nOffsetFrom, nLineWidth );
if(xSecond.is())
SetBorderDistance( xSecond, aMarginIds[nBorder], aBorderDistanceIds[nBorder],
......
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