RxFPC - fix text TCurrencyEdit.ZeroEmpty = true

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3666 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
alexs75
2014-10-20 06:12:39 +00:00
parent 2a61d87225
commit ea812a803e

View File

@ -657,6 +657,9 @@ function TCustomNumEdit.FormatDisplayText(Value: Extended): string;
var
Digits : integer;
begin
if FZeroEmpty and (Value = 0) then
Result:=''
else
if DisplayFormat <> '' then
Result:=FormatFloat(DisplayFormat, Value)
else