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

Caolán McNamara caolanm at redhat.com
Mon Mar 31 15:07:46 PDT 2014


 svl/source/numbers/zformat.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0a2cd63a2675496ef2ba19a9144246ff4c20955a
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Mar 29 21:16:41 2014 +0000

    coverity#735502 Logically dead code
    
    Change-Id: I386944df28c7e7464e596144a5612a205f5cb967
    Reviewed-on: https://gerrit.libreoffice.org/8789
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>

diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 893ff54..6fac57a 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -199,7 +199,7 @@ sal_uInt8 SvNumberNatNum::MapDBNumToNatNum( sal_uInt8 nDBNum, LanguageType eLang
     eLang &= 0x03FF;    // 10 bit primary language
     if ( bDate )
     {
-        if ( nDBNum == 4 && eLang == LANGUAGE_KOREAN )
+        if ( nDBNum == 4 && eLang == (LANGUAGE_KOREAN & 0x03FF) )
         {
             nNatNum = 9;
         }


More information about the Libreoffice-commits mailing list