diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-03-08 21:31:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-03-09 10:11:30 +0100 |
commit | cb5fc86005a85af06d8ad0bf1ac7aab7649c0048 (patch) | |
tree | 0dbb075cff63a4faaf0e1ffc3688395f2b975b23 /reportdesign | |
parent | 23ca55114d89a76d751e534768998fc48d37203c (diff) |
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.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/filter/xml/xmlCondPrtExpr.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 |