From 4e907bc366d8691a33ec0be389f211e22c6e87d3 Mon Sep 17 00:00:00 2001 From: "Chr. Rossmanith" Date: Fri, 22 Mar 2013 18:06:02 +0100 Subject: Replace String with OUString in RecodeString Change-Id: I987f738d1cd7d640a253f3cd31864290b6d763bf Reviewed-on: https://gerrit.libreoffice.org/2919 Reviewed-by: Eike Rathke Reviewed-by: Fridrich Strba Tested-by: Fridrich Strba --- vcl/source/gdi/outdev3.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'vcl') diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx index df1016c7d883..565fcae50710 100644 --- a/vcl/source/gdi/outdev3.cxx +++ b/vcl/source/gdi/outdev3.cxx @@ -5836,8 +5836,11 @@ SalLayout* OutputDevice::ImplLayout( const String& rOrigStr, // convert from logical units to physical units // recode string if needed - if( mpFontEntry->mpConversion ) - mpFontEntry->mpConversion->RecodeString( aStr, 0, aStr.Len() ); + if( mpFontEntry->mpConversion ) { + OUString aTmpStr(aStr); // only needed until aStr is OUString as well + mpFontEntry->mpConversion->RecodeString( aTmpStr, 0, aTmpStr.getLength() ); + aStr = String(aTmpStr); + } long nPixelWidth = nLogicalWidth; if( nLogicalWidth && mbMap ) -- cgit