Fix: Documentation Element not recognized anymore since commit b4998a5d
SchemaItem.Documentation is a collection that never IsTextElement, but its items are
This commit is contained in:
parent
1d5af8a7b4
commit
5f79c4a481
@ -1782,7 +1782,10 @@ begin
|
|||||||
if HasDocumentation then
|
if HasDocumentation then
|
||||||
begin
|
begin
|
||||||
for documentationIndex := 0 to Pred(SchemaItem.Documentation.Count) do
|
for documentationIndex := 0 to Pred(SchemaItem.Documentation.Count) do
|
||||||
Result := Result + SchemaItem.Documentation[documentationIndex].Text + #13#10;
|
begin
|
||||||
|
if SchemaItem.Documentation[documentationIndex].IsTextElement then
|
||||||
|
Result := Result + SchemaItem.Documentation[documentationIndex].Text + #13#10;
|
||||||
|
end;
|
||||||
|
|
||||||
Result := Trim(Result);
|
Result := Trim(Result);
|
||||||
end;
|
end;
|
||||||
@ -1790,10 +1793,16 @@ end;
|
|||||||
|
|
||||||
|
|
||||||
function TXMLDataBindingItem.GetHasDocumentation: Boolean;
|
function TXMLDataBindingItem.GetHasDocumentation: Boolean;
|
||||||
|
var
|
||||||
|
documentationIndex: Integer;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Result := Assigned(SchemaItem) and
|
Result := False;
|
||||||
(SchemaItem.Documentation.Count > 0) and
|
if Assigned(SchemaItem) then
|
||||||
SchemaItem.Documentation.IsTextElement;
|
begin
|
||||||
|
for documentationIndex := 0 to Pred(SchemaItem.Documentation.Count) do
|
||||||
|
Result := Result or SchemaItem.Documentation[documentationIndex].IsTextElement;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user