[Libreoffice-commits] core.git: vcl/source

Thomas Arnhold thomas at arnhold.org
Sat May 25 23:22:06 PDT 2013


 vcl/source/gdi/outdev3.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 5ccdfd28bf05703f2d4b3c0e2040dd6d500eb8d0
Author: Thomas Arnhold <thomas at arnhold.org>
Date:   Sun May 26 08:20:09 2013 +0200

    fix OUString conversion
    
    no idea why hgminchob and hgpminchob are/were not handled this way.
    
    Change-Id: Ia69ab790cc961645a806d971ddc4238d8288b573

diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx
index 393c2fb..1900093 100644
--- a/vcl/source/gdi/outdev3.cxx
+++ b/vcl/source/gdi/outdev3.cxx
@@ -2395,13 +2395,13 @@ ImplDevFontListData* ImplDevFontList::ImplFindByFont( FontSelectPattern& rFSD,
         &&  aSearchName.startsWithIgnoreAsciiCase( "hg" ) )
         {
             OUString aBoldName;
-            if( aSearchName.equalsIgnoreAsciiCase( "hggothicb" ) )
+            if( aSearchName.startsWithIgnoreAsciiCase( "hggothicb" ) )
                 aBoldName = OUString("hggothice");
-            else if( aSearchName.equalsIgnoreAsciiCase( "hgpgothicb" ) )
+            else if( aSearchName.startsWithIgnoreAsciiCase( "hgpgothicb" ) )
                 aBoldName = OUString("hgpgothice");
-            else if( aSearchName.equalsIgnoreAsciiCase( "hgminchol" ) )
+            else if( aSearchName.startsWithIgnoreAsciiCase( "hgminchol" ) )
                 aBoldName = OUString("hgminchob");
-            else if( aSearchName.equalsIgnoreAsciiCase( "hgpminchol" ) )
+            else if( aSearchName.startsWithIgnoreAsciiCase( "hgpminchol" ) )
                 aBoldName = OUString("hgpminchob");
             else if( aSearchName.equalsIgnoreAsciiCase( "hgminchob" ) )
                 aBoldName = OUString("hgminchoe");


More information about the Libreoffice-commits mailing list