X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fdata%2FTrackInfo.java;h=6fa8e90b2e54ba39186053fcc38a1433d5ec298c;hp=254de9341e6119d098ef327196cefdfa0b20a7fa;hb=c0387c124840c9407e040600fda88f3c3e8f6aa6;hpb=1ee49ae3c8ef3aa2e63eadd458531e5f8bd4f92c diff --git a/tim/prune/data/TrackInfo.java b/tim/prune/data/TrackInfo.java index 254de93..6fa8e90 100644 --- a/tim/prune/data/TrackInfo.java +++ b/tim/prune/data/TrackInfo.java @@ -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);