* use monetary thousands separator if numerical thousands separator is #0

(mantis #13552, patch by Jesus Reyes)

git-svn-id: trunk@13029 -
This commit is contained in:
Jonas Maebe 2009-04-23 19:17:37 +00:00
parent e8edc31a89
commit 1ad1eac9e8

View File

@ -306,6 +306,9 @@ begin
NegCurrFormat := NegFormatsTable[signp, prec, sep];
//Number stuff
ThousandSeparator:=GetLocaleChar(__THOUSANDS_SEP);
Sep := ord(GetLocaleChar(__MON_THOUSANDS_SEP));
if ThousandSeparator=#0 then
ThousandSeparator := char(Sep);
{$endif}
DecimalSeparator:=GetLocaleChar(RADIXCHAR);
end;