diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-07-16 16:04:11 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-07-17 11:01:57 +0200 |
commit | a09d357daf65e285323ff77653a6de3058fc44da (patch) | |
tree | 15ab51ffbbfc5a49add169ab2f1eab16e63e56cb /cui | |
parent | 62aae6918e33a2535462d1e7be2278a7f9745009 (diff) |
tdf#118681 make sure we're using the right font char map
Change-Id: I64265dac5d0d18b092d64ef656997d7177a425a4
Reviewed-on: https://gerrit.libreoffice.org/57505
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'cui')
-rwxr-xr-x | cui/source/dialogs/cuicharmap.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx index 117ab6f5813d..7c6d8f50a342 100755 --- a/cui/source/dialogs/cuicharmap.cxx +++ b/cui/source/dialogs/cuicharmap.cxx @@ -668,8 +668,7 @@ IMPL_LINK_NOARG(SvxCharacterMap, FontSelectHdl, weld::ComboBoxText&, void) bool bNeedSubset = (aFont.GetCharSet() != RTL_TEXTENCODING_SYMBOL); if (bNeedSubset) { - FontCharMapRef xFontCharMap( new FontCharMap() ); - m_xShowSet->GetFontCharMap( xFontCharMap ); + FontCharMapRef xFontCharMap = m_xShowSet->GetFontCharMap(); pSubsetMap = new SubsetMap( xFontCharMap ); // update subset listbox for new font's unicode subsets @@ -841,8 +840,7 @@ IMPL_LINK_NOARG(SvxCharacterMap, SearchUpdateHdl, weld::Entry&, void) toggleSearchView(true); - FontCharMapRef xFontCharMap(new FontCharMap()); - m_xSearchSet->GetFontCharMap(xFontCharMap); + FontCharMapRef xFontCharMap = m_xSearchSet->GetFontCharMap(); sal_UCS4 sChar = xFontCharMap->GetFirstChar(); while(sChar != xFontCharMap->GetLastChar()) @@ -1061,8 +1059,7 @@ void SvxCharacterMap::selectCharByCode(Radix radix) // Convert the code back to a character using the appropriate radix sal_UCS4 cChar = aCodeString.toUInt32(static_cast<sal_Int16> (radix)); // Use FontCharMap::HasChar(sal_UCS4 cChar) to see if the desired character is in the font - FontCharMapRef xFontCharMap(new FontCharMap()); - m_xShowSet->GetFontCharMap(xFontCharMap); + FontCharMapRef xFontCharMap = m_xShowSet->GetFontCharMap(); if (xFontCharMap->HasChar(cChar)) // Select the corresponding character SetChar(cChar); |