diff options
author | Thomas Lange <tl@openoffice.org> | 2001-04-09 08:47:44 +0000 |
---|---|---|
committer | Thomas Lange <tl@openoffice.org> | 2001-04-09 08:47:44 +0000 |
commit | e6f84a92c2bfe21313f315de8e61b5ecc8f0eb32 (patch) | |
tree | a6ff9b9435b2b7d6e3fc0937f5bbe164ca2f779d /starmath | |
parent | 1a78db54d9cb833e984c074aa403cee6fc944fbb (diff) |
ExportString fixed
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/utility.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/starmath/source/utility.cxx b/starmath/source/utility.cxx index 920602ce3a4d..f51d3a052ca8 100644 --- a/starmath/source/utility.cxx +++ b/starmath/source/utility.cxx @@ -2,9 +2,9 @@ * * $RCSfile: utility.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:57:27 $ + * last change: $Author: tl $ $Date: 2001-04-09 09:47:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -253,13 +253,10 @@ const ByteString ExportString(const String& rString) for (xub_StrLen i = 0; i < rString.Len(); i++) { sal_Unicode ch = rString.GetChar(i); - - sal_Char cChar = ByteString::ConvertFromUnicode( ch, eEnc ); if ((ch != '\r') && (ch != '\n') && (ch != '\t')) { -// ch = String::Convert(rString[i], eSet, CHARSET_ANSI); - - if (ch == 0) + sal_Char cChar = ByteString::ConvertFromUnicode( ch, eEnc ); + if (cChar == 0) aString += ConvertUnknownCharacter(ch); else aString += cChar; |