From: Joschka B. <jbo...@un...> - 2007-06-12 10:38:31
|
Hey Markus, On Mon, 2007-06-11 at 19:30 +0200, Markus Rollmann wrote: > Markus Rollmann wrote: > [...] > > yes, I think the problem is that in the recursive case the result of > > FindChildSupportingClass(...) for the first found child is immediately > > returned. So if the first child does not have a matching node the function > > returns immediately false instead of testing further children. > > > > The fix should be to add a second inner loop that checks all children of the > > current node and then returns for the first found node. > > I commited a fix to the simspark CVS, a second loop wasn't necessary. > Find the diff below. Great, thanks a lot! cu Joschka |