Author: dsakovich
Date: 2008-10-30 14:15:36 -0400 (Thu, 30 Oct 2008)
New Revision: 11361
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpePanelGridCreator.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3009
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpePanelGridCreator.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpePanelGridCreator.java 2008-10-30
17:01:44 UTC (rev 11360)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpePanelGridCreator.java 2008-10-30
18:15:36 UTC (rev 11361)
@@ -370,6 +370,9 @@
rci = 0;
}
for (int j = 0; j < tableSize; j++) {
+ if (i*tableSize+j >= childrenCount) {
+ break;
+ }
nsIDOMElement visualCell = visualDocument
.createElement(HTML.TAG_TD);
if (columnClasses.size() > 0) {