Commit 17043551 authored by Mark van Renswoude's avatar Mark van Renswoude

Fixed bug in Def properties using the original element name instead of the generated property name

parent ef361ac9
......@@ -179,8 +179,8 @@ const
PropertyImplMethodGetOptionalOrDefault = 'function TXML%<Name>:s.%<PropertyName>:sDef(const ADefaultValue: %<DataType>:s): %<DataType>:s;' + CrLf +
'begin' + CrLf +
' if GetHas%<PropertySourceName>:s then' + CrLf +
' Result := Get%<PropertySourceName>:s' + CrLf +
' if GetHas%<PropertyName>:s then' + CrLf +
' Result := Get%<PropertyName>:s' + CrLf +
' else' + CrLf +
' Result := ADefaultValue;' + CrLf +
'end;' + CrLf +
......
This diff is collapsed.
No preview for this file type
[Stats]
EditorSecs=37
DesignerSecs=5
InspectorSecs=1
CompileSecs=620
OtherSecs=5
StartTime=09/04/2020 10:52:32
RealKeys=0
EffectiveKeys=0
DebugSecs=20
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment