diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-05-15 17:17:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-05-15 22:19:00 +0200 |
commit | 9ad875a5e4d60ab701a4e1e68b17482e7a6e8330 (patch) | |
tree | 293e9fbbaaedf8fc15810cf0ee70d01be5238e98 /vcl | |
parent | d4b58e8f7adc031660fae6ced15048f8f927d5c0 (diff) |
if GetFontCharMap returns true xFontCharMap was reset
so there's no point in initially assign a FontCharMap to it on entry
Change-Id: Ibf6e05a2b2f6709c57b12810b6989f98cfc6db30
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94333
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/outdev/font.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx index de9670e33a55..59ce4ef52a99 100644 --- a/vcl/source/outdev/font.cxx +++ b/vcl/source/outdev/font.cxx @@ -1451,7 +1451,7 @@ sal_Int32 OutputDevice::HasGlyphs( const vcl::Font& rTempFont, const OUString& r // to get the map temporarily set font const vcl::Font aOrigFont = GetFont(); const_cast<OutputDevice&>(*this).SetFont( rTempFont ); - FontCharMapRef xFontCharMap ( new FontCharMap() ); + FontCharMapRef xFontCharMap; bool bRet = GetFontCharMap( xFontCharMap ); const_cast<OutputDevice&>(*this).SetFont( aOrigFont ); |