mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-19 09:54:49 -04:00
if no source line is available, show row index instead
This commit is contained in:
parent
05578f9481
commit
b820fcfdfa
@ -67,9 +67,13 @@ public class ValueTableModel implements TableModel, Observer {
|
||||
|
||||
@Override
|
||||
public Object getValueAt(int rowIndex, int columnIndex) {
|
||||
if (columnIndex == 0)
|
||||
return values.getSourceLine(rowIndex);
|
||||
else
|
||||
if (columnIndex == 0) {
|
||||
final int row = values.getSourceLine(rowIndex);
|
||||
if (row < 0)
|
||||
return rowIndex;
|
||||
else
|
||||
return row;
|
||||
} else
|
||||
return values.getTableValue(rowIndex, columnIndex - 1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user