incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l...@apache.org
Subject svn commit: r1390869 - /incubator/ooo/trunk/main/oox/source/helper/textinputstream.cxx
Date Thu, 27 Sep 2012 07:36:49 GMT
Author: leiw
Date: Thu Sep 27 07:36:48 2012
New Revision: 1390869

URL: http://svn.apache.org/viewvc?rev=1390869&view=rev
Log:
#i119415 VBA code can't load after open in AOO3.4 

          Patch by: Chen Peng
          Review by: Wang Lei

Modified:
    incubator/ooo/trunk/main/oox/source/helper/textinputstream.cxx

Modified: incubator/ooo/trunk/main/oox/source/helper/textinputstream.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/oox/source/helper/textinputstream.cxx?rev=1390869&r1=1390868&r2=1390869&view=diff
==============================================================================
--- incubator/ooo/trunk/main/oox/source/helper/textinputstream.cxx (original)
+++ incubator/ooo/trunk/main/oox/source/helper/textinputstream.cxx Thu Sep 27 07:36:48 2012
@@ -194,7 +194,7 @@ OUString TextInputStream::readToChar( sa
         const Reference< XComponentContext >& rxContext, const Reference< XInputStream
>& rxInStrm, rtl_TextEncoding eTextEnc )
 {
     Reference< XTextInputStream > xTextStrm;
-    const char* pcCharset = rtl_getMimeCharsetFromTextEncoding( eTextEnc );
+    const char* pcCharset = rtl_getBestMimeCharsetFromTextEncoding( eTextEnc);
     OSL_ENSURE( pcCharset, "TextInputStream::createXTextInputStream - unsupported text encoding"
);
     if( rxContext.is() && rxInStrm.is() && pcCharset ) try
     {



Mime
View raw message