You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2022/10/24 09:42:03 UTC

[myfaces-tobago] branch tobago-5.x updated: fix(sheet): sorting number icon

This is an automated email from the ASF dual-hosted git repository.

hnoeth pushed a commit to branch tobago-5.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/tobago-5.x by this push:
     new 3f18bd6fd6 fix(sheet): sorting number icon
3f18bd6fd6 is described below

commit 3f18bd6fd6c38a30bda0973d6fba52e5744c77ca
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Mon Oct 24 11:21:35 2022 +0200

    fix(sheet): sorting number icon
    
    * icon is hidden if only one column is sortable
    
    Issue: TOBAGO-2163
---
 .../src/main/java/org/apache/myfaces/tobago/model/SortedColumnList.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/model/SortedColumnList.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/model/SortedColumnList.java
index 9853de7f0c..dfe1a7a0c0 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/model/SortedColumnList.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/model/SortedColumnList.java
@@ -32,7 +32,7 @@ public class SortedColumnList implements Serializable {
 
   public SortedColumnList(final int max) {
     this.max = Math.max(max, 1);
-    this.showNumbers = max >= 1;
+    this.showNumbers = max > 1;
     this.list = new ArrayList<>(max);
     this.toBeSortedLevel = 0;
   }