]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/data/TrackInfo.java
Version 10, May 2010
[GpsPrune.git] / tim / prune / data / TrackInfo.java
index 254de9341e6119d098ef327196cefdfa0b20a7fa..6fa8e90b2e54ba39186053fcc38a1433d5ec298c 100644 (file)
@@ -399,7 +399,9 @@ public class TrackInfo
        {
                // See whether to start selection from current range start or current point
                int rangeStart = _selection.getStart();
-               if (rangeStart < 0) {rangeStart = _selection.getCurrentPointIndex();}
+               if (rangeStart < 0 || _selection.getCurrentPointIndex() != _selection.getEnd()) {
+                       rangeStart = _selection.getCurrentPointIndex();
+               }
                selectPoint(inPointNum);
                if (rangeStart < inPointNum) {
                        _selection.selectRange(rangeStart, inPointNum);