mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-06 09:07:25 +01:00
* Fixed default value for floats (mantis #9183)
git-svn-id: trunk@11687 -
This commit is contained in:
parent
64e6d68a64
commit
0ed810b6b0
@ -808,8 +808,8 @@ begin
|
||||
if HasAncestor then
|
||||
DefFloatValue := GetFloatProp(Ancestor, PropInfo)
|
||||
else
|
||||
DefFloatValue := 0;
|
||||
if FloatValue <> DefFloatValue then
|
||||
DefFloatValue := PPropInfo(PropInfo)^.Default;
|
||||
if (FloatValue<>DefFloatValue) or (DefValue=longint($80000000)) then
|
||||
begin
|
||||
Driver.BeginProperty(FPropPath + PPropInfo(PropInfo)^.Name);
|
||||
WriteFloat(FloatValue);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user