go more than 3 steps down the parent chain in getNonVirtualParent()

This commit is contained in:
hns 2002-12-06 18:17:31 +00:00
parent 020766d634
commit f5f4db52ca

View file

@ -1837,7 +1837,7 @@ public final class Node implements INode, Serializable {
*/ */
public INode getNonVirtualParent () { public INode getNonVirtualParent () {
INode node = this; INode node = this;
for (int i=0; i<3; i++) { for (int i=0; i<5; i++) {
if (node == null) break; if (node == null) break;
if (node.getState() != Node.VIRTUAL) if (node.getState() != Node.VIRTUAL)
return node; return node;