diff options
Diffstat (limited to 'svtools/source/filter/wmf/wmfwr.cxx')
-rw-r--r-- | svtools/source/filter/wmf/wmfwr.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/filter/wmf/wmfwr.cxx b/svtools/source/filter/wmf/wmfwr.cxx index e30e3956330f..5291c28061c5 100644 --- a/svtools/source/filter/wmf/wmfwr.cxx +++ b/svtools/source/filter/wmf/wmfwr.cxx @@ -457,10 +457,10 @@ void WMFWriter::WMFRecord_CreateFontIndirect(const Font & rFont) } *pWMF << nPitchFamily; - ByteString aFontName( rFont.GetName(), eFontNameEncoding ); + rtl::OString aFontName(rtl::OUStringToOString(rFont.GetName(), eFontNameEncoding)); for ( i = 0; i < W_LF_FACESIZE; i++ ) { - sal_Char nChar = ( i < aFontName.Len() ) ? aFontName.GetChar( i ) : 0; + sal_Char nChar = ( i < aFontName.getLength() ) ? aFontName[i] : 0; *pWMF << nChar; } UpdateRecordHeader(); |