svn commit: r701540 - /lenya/trunk/src/modules-core/workflow/usecases/multiWorkflow.jx

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: rfrovarp
Date: Fri Oct  3 14:31:36 2008
New Revision: 701540

URL: http://svn.apache.org/viewvc?rev=701540&view=rev
Log:
Fixes bug 43956

Modified:
    lenya/trunk/src/modules-core/workflow/usecases/multiWorkflow.jx

Modified: lenya/trunk/src/modules-core/workflow/usecases/multiWorkflow.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/workflow/usecases/multiWorkflow.jx?rev=701540&r1=701539&r2=701540&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/workflow/usecases/multiWorkflow.jx (original)
+++ lenya/trunk/src/modules-core/workflow/usecases/multiWorkflow.jx Fri Oct  3 14:31:36 2008
@@ -79,7 +79,8 @@
             <jx:set var="path" value="${doc.getPath()}"/>
             <jx:set var="depth" value="${path.split('/').size() - 2}"/>
             <jx:set var="whitespace" value="&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;"/>
-            <jx:set var="indent" value="${whitespace.substring(0, depth.intValue())}"/>
+            <jx:set var="indent" value="${whitespace.substring(0,  
+                                        java.lang.Integer.valueOf(java.lang.Math.min(depth.intValue(),whitespace.length())))}"/>
             <jx:set var="lastSlashIndex" value="${java.lang.Integer.valueOf(path.lastIndexOf('/'))}"/>
             <jx:set var="nodeName" value="${path.substring(lastSlashIndex.intValue())}"/>
             <jx:set var="languages" value="${doc.getLanguages()}"/>
@@ -147,4 +148,4 @@
       </table>
     </div>
   </page:body>
-</page:page>
\ No newline at end of file
+</page:page>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.