* Fixed default value for floats (mantis #9183)

git-svn-id: trunk@11687 -
This commit is contained in:
michael 2008-09-01 16:54:05 +00:00
parent 64e6d68a64
commit 0ed810b6b0

View File

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