Idempiere-366 Fix for width data corruption

This commit is contained in:
Deepak Pansheriya 2012-10-21 13:40:38 +05:30
parent da5f06287c
commit 71562ff5bf
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ public class GridView extends Vbox implements EventListener<Event>
gridField = fieldList.toArray(new GridField[0]); gridField = fieldList.toArray(new GridField[0]);
if (customComponent.length == 2) { if (customComponent.length == 2) {
String[] widths = customComponent[1].split("[,]"); String[] widths = customComponent[1].split("[,]");
for(int i = 0; i< gridField.length; i++) { for(int i = 0; i< gridField.length && i<widths.length; i++) {
columnWidthMap.put(gridField[i].getAD_Field_ID(), widths[i]); columnWidthMap.put(gridField[i].getAD_Field_ID(), widths[i]);
} }
} }