summaryrefslogtreecommitdiff
path: root/xmloff/source/style/numehelp.cxx
diff options
context:
space:
mode:
authorSascha Ballach <sab@openoffice.org>2001-10-29 15:01:23 +0000
committerSascha Ballach <sab@openoffice.org>2001-10-29 15:01:23 +0000
commitfd89d1774e29627054139a34be12111bde10394e (patch)
tree4bd87c787f6853c5ee92358bde7afd759f2d1fa9 /xmloff/source/style/numehelp.cxx
parent2b53d7f1ee2b19764c21f6cd3063c6af0250a1d4 (diff)
#93910#; remove undefined chars from the string-value attribute
Diffstat (limited to 'xmloff/source/style/numehelp.cxx')
-rw-r--r--xmloff/source/style/numehelp.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/xmloff/source/style/numehelp.cxx b/xmloff/source/style/numehelp.cxx
index ba9d14fc4216..c480a00a7b37 100644
--- a/xmloff/source/style/numehelp.cxx
+++ b/xmloff/source/style/numehelp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: numehelp.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: sab $ $Date: 2001-06-21 09:41:48 $
+ * last change: $Author: sab $ $Date: 2001-10-29 16:01:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -380,6 +380,11 @@ void XMLNumberFormatAttributesExportHelper::SetNumberFormatAttributes(SvXMLExpor
if (bExportTypeAttribute)
rXMLExport.AddAttribute(nNamespace, XML_VALUE_TYPE, XML_STRING);
if (bExportValue && (rValue != rCharacters))
- rXMLExport.AddAttribute(nNamespace, XML_STRING_VALUE, rValue);
+ {
+ rtl::OUString sTemp;
+ SvXMLUnitConverter::clearUndefinedChars(sTemp, rValue);
+ if (sTemp.getLength())
+ rXMLExport.AddAttribute(nNamespace, XML_STRING_VALUE, sTemp);
+ }
}