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

New commits:
commit 3c82f7d762907c4bf9387bd2bc0680a58c1e2ca1
Author: Eike Rathke <er...@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() );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to