[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-4.3' - unotools/source

Tomofumi Yagi yagit at mknada.sakura.ne.jp
Sat Jan 31 01:53:48 PST 2015


 unotools/source/misc/fontdefs.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a7a039e77221ac0c330e6265634371de70fc470d
Author: Tomofumi Yagi <yagit at mknada.sakura.ne.jp>
Date:   Thu Jan 29 20:12:47 2015 +0900

    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/14244
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    (cherry picked from commit c8c4e766643c8ad0a3d6d48e5105518ef5f66250)
    Reviewed-on: https://gerrit.libreoffice.org/14263
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>

diff --git a/unotools/source/misc/fontdefs.cxx b/unotools/source/misc/fontdefs.cxx
index 61f6a07..38cfdcf 100644
--- a/unotools/source/misc/fontdefs.cxx
+++ b/unotools/source/misc/fontdefs.cxx
@@ -284,10 +284,10 @@ static ImplLocalizedFontName aImplLocalizedNamesList[] =
 {   "mdeasop",              aMDEasop },
 {   "hggothice",            aHGGothicE },
 {   "hgpgothice",           aHGPGothicE },
-{   "hgpothice",            aHGSGothicE },
+{   "hgsgothice",           aHGSGothicE },
 {   "hggothicm",            aHGGothicM },
 {   "hgpgothicm",           aHGPGothicM },
-{   "hgpgothicm",           aHGSGothicM },
+{   "hgsgothicm",           aHGSGothicM },
 {   "hggyoshotai",          aHGGyoshotai },
 {   "hgpgyoshotai",         aHGPGyoshotai },
 {   "hgsgyoshotai",         aHGSGyoshotai },


More information about the Libreoffice-commits mailing list