diff options
-rw-r--r-- | sw/qa/core/data/ooxml/pass/fdo81380.docx | bin | 0 -> 40040 bytes | |||
-rw-r--r-- | writerfilter/source/dmapper/PropertyMap.cxx | 3 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sw/qa/core/data/ooxml/pass/fdo81380.docx b/sw/qa/core/data/ooxml/pass/fdo81380.docx Binary files differnew file mode 100644 index 000000000000..52458448fbc5 --- /dev/null +++ b/sw/qa/core/data/ooxml/pass/fdo81380.docx diff --git a/writerfilter/source/dmapper/PropertyMap.cxx b/writerfilter/source/dmapper/PropertyMap.cxx index f3d93f86db83..1fe256f1817f 100644 --- a/writerfilter/source/dmapper/PropertyMap.cxx +++ b/writerfilter/source/dmapper/PropertyMap.cxx @@ -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], |