Skip to content

Commit 1f42ee8

Browse files
authored
fix: change hardcoded values for indexed tables access (#745)
1 parent 329be5f commit 1f42ee8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common-tools/clas-utils/src/main/java/org/jlab/utils/groups/IndexedTable.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ public boolean isValid(int row, int column){
242242
*/
243243
@Override
244244
public String getColumnName(int col) {
245-
if(col>2){
246-
return this.entryNames.get(col-3);
245+
if(col>this.indexNames.size()-1){
246+
return this.entryNames.get(col-this.indexNames.size());
247247
}
248248
return this.indexNames.get(col);
249249
}

0 commit comments

Comments
 (0)