[Libreoffice-commits] core.git: filter/source
Caolán McNamara
caolanm at redhat.com
Tue May 9 09:22:08 UTC 2017
filter/source/graphicfilter/icgm/actimpr.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a6be278801ed5f3f5462c40ff3284f48c378541b
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue May 9 10:21:24 2017 +0100
this string might not be valid ascii
Change-Id: I9335c5514ea64ba81817db30d3ac7fbedc9f9feb
diff --git a/filter/source/graphicfilter/icgm/actimpr.cxx b/filter/source/graphicfilter/icgm/actimpr.cxx
index a326ddc9003b..0eb3dfce6551 100644
--- a/filter/source/graphicfilter/icgm/actimpr.cxx
+++ b/filter/source/graphicfilter/icgm/actimpr.cxx
@@ -862,7 +862,7 @@ void CGMImpressOutAct::AppendText( const char* pString )
uno::Any aFirstQuery( aShape->queryInterface( cppu::UnoType<text::XText>::get()) );
if( aFirstQuery >>= xText )
{
- OUString aStr( OUString::createFromAscii( pString ) );
+ OUString aStr(pString, strlen(pString), RTL_TEXTENCODING_ASCII_US);
uno::Reference< text::XTextCursor > aXTextCursor( xText->createTextCursor() );
if ( aXTextCursor.is() )
More information about the Libreoffice-commits
mailing list