vcl/source/outdev/font.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 9ad875a5e4d60ab701a4e1e68b17482e7a6e8330 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri May 15 17:17:41 2020 +0100 Commit: Caolán McNamara <caol...@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 <caol...@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 ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits