diff options
author | Michael Brauer <mib@openoffice.org> | 2001-05-07 06:50:54 +0000 |
---|---|---|
committer | Michael Brauer <mib@openoffice.org> | 2001-05-07 06:50:54 +0000 |
commit | 758a79fb59398acef28b55acee4e9b82dd04e571 (patch) | |
tree | f1000cb96aa046ca35a0a9fe195a95c4bb9abf26 | |
parent | 0c232d5edd50f9a140e4b76151a573842c6a5b59 (diff) |
#86642#: Ignore illegal tab fill and decimal characters
-rw-r--r-- | xmloff/source/style/xmltabe.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/xmloff/source/style/xmltabe.cxx b/xmloff/source/style/xmltabe.cxx index 16683818a6b5..db4e0455de23 100644 --- a/xmloff/source/style/xmltabe.cxx +++ b/xmloff/source/style/xmltabe.cxx @@ -2,9 +2,9 @@ * * $RCSfile: xmltabe.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: mib $ $Date: 2001-01-05 10:01:15 $ + * last change: $Author: mib $ $Date: 2001-05-07 07:50:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -130,7 +130,8 @@ void SvxXMLTabStopExport::exportTabStop( const ::com::sun::star::style::TabStop* } // char - if( style::TabAlign_DECIMAL == pTabStop->Alignment ) + if( style::TabAlign_DECIMAL == pTabStop->Alignment && + pTabStop->DecimalChar != 0 ) { sBuffer.append( pTabStop->DecimalChar ); AddAttribute( XML_NAMESPACE_STYLE, sXML_char, @@ -138,7 +139,7 @@ void SvxXMLTabStopExport::exportTabStop( const ::com::sun::star::style::TabStop* } // leader-char - if( ' ' != pTabStop->FillChar ) + if( ' ' != pTabStop->FillChar && 0 != pTabStop->FillChar ) { sBuffer.append( pTabStop->FillChar ); AddAttribute( XML_NAMESPACE_STYLE, sXML_leader_char, |