From 730c1f061e931a01fe01336c4bbb0a8683ccf72d Mon Sep 17 00:00:00 2001 From: trifonnt Date: Mon, 12 Apr 2010 21:38:48 +0000 Subject: [PATCH] BF [2917678] - Sort in Grid Mode https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2917678&group_id=176962 --- base/src/org/compiere/model/GridTable.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/src/org/compiere/model/GridTable.java b/base/src/org/compiere/model/GridTable.java index ca1bb1339b..6bce4f1097 100644 --- a/base/src/org/compiere/model/GridTable.java +++ b/base/src/org/compiere/model/GridTable.java @@ -855,6 +855,9 @@ public class GridTable extends AbstractTableModel public void sort (int col, boolean ascending) { log.info("#" + col + " " + ascending); + if (col < 0) { + return; + } if (getRowCount() == 0) return;