summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2004-10-28 12:02:55 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2004-10-28 12:02:55 +0000
commitbf3caf8afaec110857a32cd129ee9d85fcb24970 (patch)
treed6d0456dcc44a5592b5d8b486121e66a3e67a1c9 /svtools
parentd7bbc5f60961247bf6e561189386dd60ff1d99ab (diff)
INTEGRATION: CWS adarefilterteam29 (1.4.238); FILE MERGED
2004/07/06 13:11:57 mmaher 1.4.238.1: #i20264# Applied patch from tono@openoffice.org for writing in local charsets
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/svrtf/rtfout.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/svtools/source/svrtf/rtfout.cxx b/svtools/source/svrtf/rtfout.cxx
index 50ecb1b739a9..5a57b4cf83ee 100644
--- a/svtools/source/svrtf/rtfout.cxx
+++ b/svtools/source/svrtf/rtfout.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: rtfout.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: hr $ $Date: 2003-11-05 14:23:57 $
+ * last change: $Author: rt $ $Date: 2004-10-28 13:02:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -166,6 +166,7 @@ SvStream& RTFOutFuncs::Out_Char(SvStream& rStream, sal_Unicode c,
//If we can't convert to the dest encoding, or if
//its an uncommon multibyte sequence which most
//readers won't be able to handle correctly, then
+ //If we can't convert to the dest encoding, then
//export as unicode
OUString sBuf(&c, 1);
OString sConverted;
@@ -180,8 +181,6 @@ SvStream& RTFOutFuncs::Out_Char(SvStream& rStream, sal_Unicode c,
eDestEnc, OUSTRING_TO_OSTRING_CVTFLAGS);
}
const sal_Int32 nLen = sConverted.getLength();
- if (sConverted.getLength() > 1)
- bWriteAsUnicode = true;
if (bWriteAsUnicode && pUCMode)
{