Revision: 4812
          http://sourceforge.net/p/jump-pilot/code/4812
Author:   michaudm
Date:     2016-02-02 21:00:14 +0000 (Tue, 02 Feb 2016)
Log Message:
-----------
Fix bug #415

Modified Paths:
--------------
    core/trunk/src/com/vividsolutions/jump/workbench/ui/AttributeTablePanel.java

Modified: 
core/trunk/src/com/vividsolutions/jump/workbench/ui/AttributeTablePanel.java
===================================================================
--- 
core/trunk/src/com/vividsolutions/jump/workbench/ui/AttributeTablePanel.java    
    2016-02-02 09:40:20 UTC (rev 4811)
+++ 
core/trunk/src/com/vividsolutions/jump/workbench/ui/AttributeTablePanel.java    
    2016-02-02 21:00:14 UTC (rev 4812)
@@ -561,7 +561,6 @@
                     }
                     // add selected features which are not yet in the 
AttributeTablePanel
                     if (selection.size() > 0) {
-                        int nextRow = getModel().getRowCount();
                         List<Feature> newFeatures = new ArrayList<Feature>();
                         for (Object obj : selection) {
                             int fid = ((Feature) obj).getID();
@@ -570,7 +569,9 @@
                             }
                         }
                         getModel().addAll(newFeatures);
-                        for (int row = nextRow; row < 
getModel().getRowCount(); row++) {
+                        // re-compute the full mapIdRow, because if the model 
is sorted
+                        // mapping may have changed even in the first rows
+                        for (int row = 0; row < getModel().getRowCount(); 
row++) {
                             mapIdRow.put(getModel().getFeature(row).getID(), 
row);
                         }
                     }


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to