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
This commit is contained in:
Eike Rathke
2016-08-15 14:24:11 +02:00
parent ab98c81e1c
commit 3c82f7d762

View File

@@ -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() );