From: <ben...@us...> - 2008-04-22 14:36:05
|
Revision: 892 http://stripes.svn.sourceforge.net/stripes/?rev=892&view=rev Author: bengunter Date: 2008-04-22 07:36:00 -0700 (Tue, 22 Apr 2008) Log Message: ----------- More for STS-551. When searching for a parent tag in the tag stack, we should climb the stack looking for "this" tag first, and then we should continue climbing the stack in search of the parent. Modified Paths: -------------- trunk/stripes/src/net/sourceforge/stripes/tag/StripesTagSupport.java Modified: trunk/stripes/src/net/sourceforge/stripes/tag/StripesTagSupport.java =================================================================== --- trunk/stripes/src/net/sourceforge/stripes/tag/StripesTagSupport.java 2008-04-22 13:16:16 UTC (rev 891) +++ trunk/stripes/src/net/sourceforge/stripes/tag/StripesTagSupport.java 2008-04-22 14:36:00 UTC (rev 892) @@ -143,6 +143,7 @@ // If we can't find it by the normal way, try our own tag stack! Stack<StripesTagSupport> stack = getTagStack(); ListIterator<StripesTagSupport> iterator = stack.listIterator(stack.size()); + while (iterator.hasPrevious() && iterator.previous() != this); while (iterator.hasPrevious()) { StripesTagSupport tag = iterator.previous(); if (tagType.isAssignableFrom(tag.getClass())) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |