branch feature/3935 created (now 5a87cf7)
This is an automated email from the git hooks/post-receive script. New change to branch feature/3935 in repository jaxx. See https://gitlab.nuiton.org/nuiton/jaxx.git at 5a87cf7 browse the column until the end of all the columns, not only the visible ones (fixes #3935) This branch includes the following new commits: new 5a87cf7 browse the column until the end of all the columns, not only the visible ones (fixes #3935) The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 5a87cf7c2a4c291edc9c3d8376c5ba239d225682 Author: Kevin Morin <morin@codelutin.com> Date: Tue Apr 26 16:30:41 2016 +0200 browse the column until the end of all the columns, not only the visible ones (fixes #3935) -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/3935 in repository jaxx. See https://gitlab.nuiton.org/nuiton/jaxx.git commit 5a87cf7c2a4c291edc9c3d8376c5ba239d225682 Author: Kevin Morin <morin@codelutin.com> Date: Tue Apr 26 16:30:41 2016 +0200 browse the column until the end of all the columns, not only the visible ones (fixes #3935) --- .../java/jaxx/runtime/swing/session/JXTableSwingSessionState.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/jaxx-runtime/src/main/java/jaxx/runtime/swing/session/JXTableSwingSessionState.java b/jaxx-runtime/src/main/java/jaxx/runtime/swing/session/JXTableSwingSessionState.java index 0e651c8..7f6d0ff 100644 --- a/jaxx-runtime/src/main/java/jaxx/runtime/swing/session/JXTableSwingSessionState.java +++ b/jaxx-runtime/src/main/java/jaxx/runtime/swing/session/JXTableSwingSessionState.java @@ -26,7 +26,6 @@ import org.jdesktop.swingx.JXTable; import org.jdesktop.swingx.table.DefaultTableColumnModelExt; import org.jdesktop.swingx.table.TableColumnExt; -import javax.swing.*; import javax.swing.table.TableColumn; import java.util.List; import java.util.Map; @@ -99,9 +98,9 @@ public class JXTableSwingSessionState extends JTableState { DefaultTableColumnModelExt columnModel = (DefaultTableColumnModelExt) table.getColumnModel(); List<TableColumn> columns = columnModel.getColumns(true); - if (hiddenColumns != null - && hiddenColumns.length == columns.size()) { - for (int i = 0; i < table.getColumnCount(); i++) { + int columnNb = columns.size(); + if (hiddenColumns != null && hiddenColumns.length == columnNb) { + for (int i = 0; i < columnNb; i++) { TableColumnExt tc = (TableColumnExt) columns.get(i); tc.setVisible(!hiddenColumns[i]); } -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.
participants (1)
-
nuiton.org scm