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

Eike Rathke erack at redhat.com
Mon Aug 15 12:28:57 UTC 2016


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

New commits:
commit 3c82f7d762907c4bf9387bd2bc0680a58c1e2ca1
Author: Eike Rathke <erack at redhat.com>
Date:   Mon Aug 15 14:24:11 2016 +0200

    use SvNumberNatNum::IsComplete() instead of IsSet(), tdf#79398 follow-up
    
    IsComplete() takes into account if the language was also set, output is
    transliterated only if complete.
    
    Change-Id: I1b7c2c8dbd308604c7af9aa5d1aa3ff0c1b436ca

diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 2fc1912..751fa75 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -4718,7 +4718,7 @@ OUString SvNumberformat::GetMappedFormatstring( const NfKeywordTable& rKeywords,
         }
 
         const SvNumberNatNum& rNum = NumFor[n].GetNatNum();
-        if ( rNum.IsSet() && rNum.GetDBNum() > 0 )
+        if ( rNum.IsComplete() && rNum.GetDBNum() > 0 )
         {
             aPrefix += "[DBNum";
             aPrefix += OUString::number( rNum.GetDBNum() );


More information about the Libreoffice-commits mailing list