[Libreoffice-commits] core.git: vcl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 15 20:19:36 UTC 2020
vcl/source/outdev/font.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 9ad875a5e4d60ab701a4e1e68b17482e7a6e8330
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri May 15 17:17:41 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri May 15 22:19:00 2020 +0200
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 at redhat.com>
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 );
More information about the Libreoffice-commits
mailing list