* 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:
Adrien Prokopowicz 2012-06-15 19:23:01 +00:00
parent 5d2edb3fec
commit 213343c966

View file

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