diff options
author | Eike Rathke <erack@redhat.com> | 2016-08-15 14:24:11 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-08-15 14:28:23 +0200 |
commit | 3c82f7d762907c4bf9387bd2bc0680a58c1e2ca1 (patch) | |
tree | 8885f4cf055331efe1457601f8779d2021a3a45a /svl | |
parent | ab98c81e1c4913aac3ce6453aa95c581dd582058 (diff) |
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
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zformat.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index 2fc1912b0e3f..751fa750c5bc 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() ); |