BF [2917678] - Sort in Grid Mode

https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2917678&group_id=176962
This commit is contained in:
trifonnt 2010-04-12 21:38:48 +00:00
parent 6dced678fe
commit 730c1f061e
1 changed files with 3 additions and 0 deletions

View File

@ -855,6 +855,9 @@ public class GridTable extends AbstractTableModel
public void sort (int col, boolean ascending) public void sort (int col, boolean ascending)
{ {
log.info("#" + col + " " + ascending); log.info("#" + col + " " + ascending);
if (col < 0) {
return;
}
if (getRowCount() == 0) if (getRowCount() == 0)
return; return;