[Libreoffice-commits] .: vcl/win

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Jan 7 06:24:10 PST 2013


 vcl/win/source/gdi/salgdi3.cxx |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

New commits:
commit d7fbc4ad10c954e8705716721018edf546862a46
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Mon Jan 7 15:23:28 2013 +0100

    further windows build fix for vcl changes
    
    Caused by 1e1ba8611fb134fb693354daae8931e93e46124c and not fixed
    in 83f684c86c22df40ff1ef5fe7dc4b829a66c2645.
    
    Change-Id: I43853f1d933a70789c4b89a22d06d2d383493758

diff --git a/vcl/win/source/gdi/salgdi3.cxx b/vcl/win/source/gdi/salgdi3.cxx
index 69a05ee..d533181 100644
--- a/vcl/win/source/gdi/salgdi3.cxx
+++ b/vcl/win/source/gdi/salgdi3.cxx
@@ -165,7 +165,9 @@ ImplFontAttrCache::ImplFontAttrCache( const String& rFileNameURL, const String&
         aCacheFile >> n; aDFA.SetFamilyType(static_cast<FontFamily>(n));
         aCacheFile >> n; aDFA.SetSymbolFlag(n != 0);
 
-        aCacheFile.ReadByteStringLine( aDFA.GetStyleName(), RTL_TEXTENCODING_UTF8 );
+        String styleName;
+        aCacheFile.ReadByteStringLine( styleName, RTL_TEXTENCODING_UTF8 );
+        aDFA.SetStyleName( styleName );
 
         aFontAttributes[ aFontFileURL ] = aDFA;
     }
@@ -904,7 +906,7 @@ static ImplDevFontAttributes WinFont2DevFontAttributes( const ENUMLOGFONTEXW& rE
     aDFA.SetSymbolFlag(rLogFont.lfCharSet == SYMBOL_CHARSET);
 
     // get the font face name
-    aDFA.SetFamilyName(reinterpret_cast<const sal_Unicode*>(rLogFont.lfFaceName));
+    aDFA.SetFamilyName( String().Assign(reinterpret_cast<const sal_Unicode*>(rLogFont.lfFaceName)));
 
     // use the face's style name only if it looks reasonable
     const wchar_t* pStyleName = rEnumFont.elfStyle;
@@ -914,7 +916,7 @@ static ImplDevFontAttributes WinFont2DevFontAttributes( const ENUMLOGFONTEXW& rE
         if( *p < 0x0020 )
             break;
     if( p < pEnd )
-        aDFA.SetStyleName(reinterpret_cast<const sal_Unicode*>(pStyleName));
+        aDFA.SetStyleName( String().Assign(reinterpret_cast<const sal_Unicode*>(pStyleName)));
 
     // get device specific font attributes
     aDFA.mbOrientation  = (nFontType & RASTER_FONTTYPE) == 0;
@@ -1679,7 +1681,7 @@ void WinSalGraphics::GetFontMetric( ImplFontMetricData* pMetric, int nFallbackLe
 
     wchar_t aFaceName[LF_FACESIZE+60];
     if( ::GetTextFaceW( mhDC, sizeof(aFaceName)/sizeof(wchar_t), aFaceName ) )
-        pMetric->SetFamilyName(reinterpret_cast<const sal_Unicode*>(aFaceName));
+        pMetric->SetFamilyName( String().Assign( reinterpret_cast<const sal_Unicode*>(aFaceName)));
 
     // get the font metric
     TEXTMETRICA aWinMetric;


More information about the Libreoffice-commits mailing list