diff --git a/reportdesign/source/filter/xml/xmlExport.cxx b/reportdesign/source/filter/xml/xmlExport.cxx index 9f3ce57..c9fd201 100644 --- a/reportdesign/source/filter/xml/xmlExport.cxx +++ b/reportdesign/source/filter/xml/xmlExport.cxx @@ -1186,7 +1186,6 @@ void ORptExport::exportAutoStyle(XPropertySet* _xProp,const ReferencegetPosition(); awt::Size aSize = xFixedLine->getSize(); - sal_Int32 nSectionHeight = xFixedLine->getSection()->getHeight(); ::rtl::OUString sBorderProp; ::std::vector< ::rtl::OUString> aProps; @@ -1208,11 +1207,15 @@ void ORptExport::exportAutoStyle(XPropertySet* _xProp,const ReferencegetSection() != NULL) { - sBorderProp = PROPERTY_BORDERBOTTOM; - aProps.push_back(static_cast(PROPERTY_BORDERTOP)); + sal_Int32 nSectionHeight = xFixedLine->getSection()->getHeight(); + // check if border should be bottom + if ( (aPos.Y + aSize.Height) == nSectionHeight ) + { + sBorderProp = PROPERTY_BORDERBOTTOM; + aProps.push_back(static_cast(PROPERTY_BORDERTOP)); + } } else {