branch develop updated (4c7ceaa8 -> 72fba0ca)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository faxtomail. See https://gitlab.nuiton.org/codelutin/faxtomail.git from 4c7ceaa8 [jgitflow-maven-plugin]Updating develop poms back to pre merge state new 72fba0ca Lors de la reselection d'une demandes verifier que l'index de selection est valide c.f. mail de Quinio : TR: plante FTM FF du 18/17/2018 à 17:40 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 72fba0cab254152d8683fad5b374e13dea59dba1 Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Fri Jul 20 15:23:33 2018 +0200 Lors de la reselection d'une demandes verifier que l'index de selection est valide c.f. mail de Quinio : TR: plante FTM FF du 18/17/2018 à 17:40 Summary of changes: .../content/demande/actions/SaveDemandeFromListAction.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository faxtomail. See https://gitlab.nuiton.org/codelutin/faxtomail.git commit 72fba0cab254152d8683fad5b374e13dea59dba1 Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Fri Jul 20 15:23:33 2018 +0200 Lors de la reselection d'une demandes verifier que l'index de selection est valide c.f. mail de Quinio : TR: plante FTM FF du 18/17/2018 à 17:40 --- .../content/demande/actions/SaveDemandeFromListAction.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/actions/SaveDemandeFromListAction.java b/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/actions/SaveDemandeFromListAction.java index f7dc36d9..9ae9ba66 100644 --- a/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/actions/SaveDemandeFromListAction.java +++ b/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/actions/SaveDemandeFromListAction.java @@ -124,8 +124,9 @@ public class SaveDemandeFromListAction extends AbstractFaxToMailAction<DemandeLi //si rien de sélectionné = la sélection a disparu => re-sélectionne la première ligne de l'ancienne sélection if (dataTable.getSelectedRow() < 0 && firstSelectedRowBeforeRefresh > 0) { - dataTable.addRowSelectionInterval(firstSelectedRowBeforeRefresh, firstSelectedRowBeforeRefresh); - dataTable.scrollRowToVisible(firstSelectedRowBeforeRefresh); + int rowSelected = Math.max(0, Math.min(dataTable.getRowCount() - 1, firstSelectedRowBeforeRefresh)); + dataTable.addRowSelectionInterval(rowSelected, rowSelected); + dataTable.scrollRowToVisible(rowSelected); } } else if (currentEmail != null) { @@ -141,8 +142,9 @@ public class SaveDemandeFromListAction extends AbstractFaxToMailAction<DemandeLi dataTable.scrollRowToVisible(selectedRowBeforeRefresh); } else if (selectedRowBeforeRefresh > 1 ){ //si pas possible sélectionne la ligne précédent la ligne d'avant refresh - dataTable.setRowSelectionInterval(selectedRowBeforeRefresh-1, selectedRowBeforeRefresh-1); - dataTable.scrollRowToVisible(selectedRowBeforeRefresh-1); + int rowSelected = Math.max(0, Math.min(dataTable.getRowCount() - 1, firstSelectedRowBeforeRefresh - 1 )); + dataTable.setRowSelectionInterval(rowSelected, rowSelected); + dataTable.scrollRowToVisible(rowSelected); } } //si pas de sélection ici c'est qu'on ne peut plus rien faire -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
participants (1)
-
codelutin.com scm