Kaydet (Commit) c8c4e766 authored tarafından Tomofumi Yagi's avatar Tomofumi Yagi Kaydeden (comit) Caolán McNamara

fix tdf#88855: GetEnglishSearchFontName() returns incorrect value.

GetEnglishSearchFontName() returns incorrect value for specific localized
font name as parameter(ex."HGS Gothic M").
Because, the conversion table "aImplLocalizedNamesList[]" is wrong.

http://opengrok.libreoffice.org/xref/core/unotools/source/misc/fontdefs.cxx#181

This causes the assertion from vcl/source/font/PhysicalFontFamily.cxx(line:297),
and more problems, probably.

This patch fixes two entries in the conversion table.
One fixes the assertion, another fixes typo.

Change-Id: I3141bbbb7956608cc59f20ad42c76ef97a42189d
Reviewed-on: https://gerrit.libreoffice.org/14244Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 95f4b2f4
...@@ -284,10 +284,10 @@ static ImplLocalizedFontName aImplLocalizedNamesList[] = ...@@ -284,10 +284,10 @@ static ImplLocalizedFontName aImplLocalizedNamesList[] =
{ "mdeasop", aMDEasop }, { "mdeasop", aMDEasop },
{ "hggothice", aHGGothicE }, { "hggothice", aHGGothicE },
{ "hgpgothice", aHGPGothicE }, { "hgpgothice", aHGPGothicE },
{ "hgpothice", aHGSGothicE }, { "hgsgothice", aHGSGothicE },
{ "hggothicm", aHGGothicM }, { "hggothicm", aHGGothicM },
{ "hgpgothicm", aHGPGothicM }, { "hgpgothicm", aHGPGothicM },
{ "hgpgothicm", aHGSGothicM }, { "hgsgothicm", aHGSGothicM },
{ "hggyoshotai", aHGGyoshotai }, { "hggyoshotai", aHGGyoshotai },
{ "hgpgyoshotai", aHGPGyoshotai }, { "hgpgyoshotai", aHGPGyoshotai },
{ "hgsgyoshotai", aHGSGyoshotai }, { "hgsgyoshotai", aHGSGyoshotai },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment