mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-20 10:49:20 +02:00
* Patch from Graeme Geldenhuys to check for XMLDocument before typecasting it
git-svn-id: trunk@16443 -
This commit is contained in:
parent
3650944d9e
commit
a8e4234aca
@ -681,6 +681,8 @@ begin
|
|||||||
wrtStr('?>');
|
wrtStr('?>');
|
||||||
|
|
||||||
// TODO: now handled as a regular PI, remove this?
|
// TODO: now handled as a regular PI, remove this?
|
||||||
|
if node is TXMLDocument then
|
||||||
|
begin
|
||||||
if Length(TXMLDocument(node).StylesheetType) > 0 then
|
if Length(TXMLDocument(node).StylesheetType) > 0 then
|
||||||
begin
|
begin
|
||||||
wrtStr(FLineBreak);
|
wrtStr(FLineBreak);
|
||||||
@ -690,6 +692,7 @@ begin
|
|||||||
wrtStr(TXMLDocument(node).StylesheetHRef);
|
wrtStr(TXMLDocument(node).StylesheetHRef);
|
||||||
wrtStr('"?>');
|
wrtStr('"?>');
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
child := node.FirstChild;
|
child := node.FirstChild;
|
||||||
while Assigned(Child) do
|
while Assigned(Child) do
|
||||||
|
Loading…
Reference in New Issue
Block a user