diff options
Diffstat (limited to 'reportdesign/source/filter/xml/xmlCondPrtExpr.cxx')
-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 |