My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 1: node.findNode() doesn't work
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  May 2011


 
Reported by andr...@schusterandreas.de, May 1, 2011
Searching for a node with a specific name using findNode() doesn't work. The method alway return null, even if a node with the specified name exists.

The problem is caused by the following piece of code inside findNode() in Wrappers\Node.cs:

foreach (Node oNode in tChildren)
{
	if (this.sName == oNode.getName())
		return oNode;
}

Here you are comparing the name of each child against the name of *this* node instead of the passed parameter. The if-line should read

if (this.sName == oNode.getName())
May 3, 2011
#1 andr...@schusterandreas.de
Err, I mean

if (sName == oNode.getName())
May 4, 2011
Project Member #2 asheepca...@gmail.com
Nice catch, thanks!  This is now in r4 and will be included in the next binary release.
May 4, 2011
Project Member #3 asheepca...@gmail.com
(No comment was entered for this change.)
Status: Fixed

Powered by Google Project Hosting