[GB.XML]
* BUG: XmlReader.Node.Attributes.Count now always returns an integer. git-svn-id: svn://localhost/gambas/trunk@4835 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
5d2edb3fec
commit
213343c966
1 changed files with 5 additions and 1 deletions
|
@ -143,10 +143,14 @@ if(!THIS->foundNode)
|
|||
return;
|
||||
}
|
||||
|
||||
if(READ_PROPERTY && THIS->foundNode->isElement())
|
||||
if(THIS->foundNode->isElement())
|
||||
{
|
||||
GB.ReturnInteger(THIS->foundNode->toElement()->attributeCount);
|
||||
}
|
||||
else
|
||||
{
|
||||
GB.ReturnInteger(0);
|
||||
}
|
||||
|
||||
END_PROPERTY
|
||||
|
||||
|
|
Loading…
Reference in a new issue