reportdesign/source/filter/xml/xmlCondPrtExpr.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit cb5fc86005a85af06d8ad0bf1ac7aab7649c0048 Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Sun Mar 8 21:31:12 2020 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Mar 9 10:11:30 2020 +0100 tdf#130878 improvement to previous fix which does not cause tons of extra pages to show up Change-Id: Ia80d66de2056d78d8cecd2814239951d0de97018 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90193 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/reportdesign/source/filter/xml/xmlCondPrtExpr.cxx b/reportdesign/source/filter/xml/xmlCondPrtExpr.cxx index 4c8132d30636..63c7649bcb52 100644 --- a/reportdesign/source/filter/xml/xmlCondPrtExpr.cxx +++ b/reportdesign/source/filter/xml/xmlCondPrtExpr.cxx @@ -80,7 +80,8 @@ void OXMLCondPrtExpr::characters( const OUString& rChars ) void OXMLCondPrtExpr::endFastElement( sal_Int32 ) { - m_xComponent->setPropertyValue(PROPERTY_CONDITIONALPRINTEXPRESSION,makeAny(m_aCharBuffer.makeStringAndClear())); + if (m_aCharBuffer.getLength()) + m_xComponent->setPropertyValue(PROPERTY_CONDITIONALPRINTEXPRESSION,makeAny(m_aCharBuffer.makeStringAndClear())); } } // namespace rptxml _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits