You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by no...@apache.org on 2010/08/16 16:00:31 UTC
svn commit: r985932 -
/pivot/trunk/wtk/src/org/apache/pivot/wtk/TableView.java
Author: noelgrandin
Date: Mon Aug 16 14:00:30 2010
New Revision: 985932
URL: http://svn.apache.org/viewvc?rev=985932&view=rev
Log:
fix switching from TableView.SelectMode.NONE to any other mode
Modified:
pivot/trunk/wtk/src/org/apache/pivot/wtk/TableView.java
Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/TableView.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/TableView.java?rev=985932&r1=985931&r2=985932&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/TableView.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/TableView.java Mon Aug 16 14:00:30 2010
@@ -1668,7 +1668,8 @@ public class TableView extends Component
throw new IllegalArgumentException("selectedRanges is null.");
}
- if (selectMode == SelectMode.NONE) {
+ // when we're in mode NONE, the only thing we can do is to clear the selection
+ if (selectMode == SelectMode.NONE && selectedRanges.getLength() > 0) {
throw new IllegalArgumentException("Selection is not enabled.");
}