diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-31 15:15:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-03-31 15:25:11 +0100 |
commit | 011e1cdbf33e50626f1fefa8b7b4031fa368f3e8 (patch) | |
tree | 174ea32242250e14cc14f32fbdda6fd61f87de7a | |
parent | 286e907cd42015f8311ecbb8568d75bf21da4f88 (diff) |
Related: tdf#106515 show OpenSymbol if unavailable StarSymbol requested
Change-Id: I442df1c44839642bd1f91afedee577214032466b
-rw-r--r-- | cui/source/dialogs/cuicharmap.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx index a92f99b6d00c..8d1180a9e9b3 100644 --- a/cui/source/dialogs/cuicharmap.cxx +++ b/cui/source/dialogs/cuicharmap.cxx @@ -380,6 +380,13 @@ void SvxCharacterMap::SetCharFont( const vcl::Font& rFont ) // like "Times New Roman;Times" resolved vcl::Font aTmp( GetFontMetric( rFont ) ); + if (aTmp.GetFamilyName() == "StarSymbol" && m_pFontLB->GetEntryPos(aTmp.GetFamilyName()) == LISTBOX_ENTRY_NOTFOUND) + { + //if for some reason, like font in an old document, StarSymbol is requested and its not available, then + //try OpenSymbol instead + aTmp.SetFamilyName("OpenSymbol"); + } + if ( m_pFontLB->GetEntryPos( aTmp.GetFamilyName() ) == LISTBOX_ENTRY_NOTFOUND ) return; |