]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/data/SourceInfo.java
Version 13, August 2011
[GpsPrune.git] / tim / prune / data / SourceInfo.java
index 341bf0299410a3f767adcf9fbe9f3064d9053aef..e78d5754cbb40a14594f25c73f87edb2b4ac9fd0 100644 (file)
@@ -125,6 +125,7 @@ public class SourceInfo
                for (int i=0; i<_points.length && (idx < 0); i++) {
                        if (_points[i] == inPoint) {idx = i;}
                }
+               if (idx == -1) {return idx;}             // point not found
                if (_pointIndices == null) {return idx;} // All points loaded
                return _pointIndices[idx]; // use point index mapping
        }