Author: pwang
Date: 2010-01-19 12:14:22 -0800 (Tue, 19 Jan 2010)
New Revision: 18960
Modified:
coreplugins/trunk/browser/src/browser/ui/CyAttributeBrowserTable.java
Log:
Fixed an exception
Modified: coreplugins/trunk/browser/src/browser/ui/CyAttributeBrowserTable.java
===================================================================
--- coreplugins/trunk/browser/src/browser/ui/CyAttributeBrowserTable.java
2010-01-19 19:11:32 UTC (rev 18959)
+++ coreplugins/trunk/browser/src/browser/ui/CyAttributeBrowserTable.java
2010-01-19 20:14:22 UTC (rev 18960)
@@ -1246,8 +1246,10 @@
// save the column width, if user adjust column width manually
if (e.getSource() instanceof JTableHeader){
final int index =
getColumnModel().getColumnIndexAtX(e.getX());
- int colWidth =
getColumnModel().getColumn(index).getWidth();
- this.columnWidthMap.put(this.getColumnName(index), new
Integer(colWidth));
+ if (index != -1){
+ int colWidth =
getColumnModel().getColumn(index).getWidth();
+
this.columnWidthMap.put(this.getColumnName(index), new Integer(colWidth));
+ }
}
}
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.