cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lgaw...@apache.org
Subject svn commit: r168623 - /cocoon/blocks/unsupported/template/trunk/java/org/apache/cocoon/template/jxtg/instruction/StartForEach.java
Date Fri, 06 May 2005 15:39:18 GMT
Author: lgawron
Date: Fri May  6 08:39:17 2005
New Revision: 168623

URL: http://svn.apache.org/viewcvs?rev=168623&view=rev
Log:
a quick fix to make jx:forEach begin="sth" end="sth" work again. I will have to see why this
is needed at all though.

Modified:
    cocoon/blocks/unsupported/template/trunk/java/org/apache/cocoon/template/jxtg/instruction/StartForEach.java

Modified: cocoon/blocks/unsupported/template/trunk/java/org/apache/cocoon/template/jxtg/instruction/StartForEach.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/unsupported/template/trunk/java/org/apache/cocoon/template/jxtg/instruction/StartForEach.java?rev=168623&r1=168622&r2=168623&view=diff
==============================================================================
--- cocoon/blocks/unsupported/template/trunk/java/org/apache/cocoon/template/jxtg/instruction/StartForEach.java
(original)
+++ cocoon/blocks/unsupported/template/trunk/java/org/apache/cocoon/template/jxtg/instruction/StartForEach.java
Fri May  6 08:39:17 2005
@@ -93,6 +93,11 @@
             step = this.step == null
                 ? 1
                 : this.step.getIntValue(expressionContext);
+            
+            // FIXME: why is this needed?
+            if ( step == 0 )
+                step = 1;
+            
             var = this.var.getStringValue(expressionContext);
             varStatus = this.varStatus.getStringValue(expressionContext);
         } catch (Exception exc) {



Mime
View raw message