]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/correlate/PhotoCorrelator.java
Version 6, October 2008
[GpsPrune.git] / tim / prune / correlate / PhotoCorrelator.java
index f2c1fc8961ecdc412a5a91495129911bd6f5ea4d..ccf5345103826ee2fb05f9e9b9253562835e2ab2 100644 (file)
@@ -536,8 +536,8 @@ public class PhotoCorrelator
        private static PointPair getPointPairForPhoto(Track inTrack, Photo inPhoto, TimeDifference inOffset)
        {
                PointPair pair = new PointPair(inPhoto);
-               // Add offet to photo timestamp
-               Timestamp photoStamp = inPhoto.getTimestamp().subtractOffset(inOffset);
+               // Add/subtract offet to photo timestamp
+               Timestamp photoStamp = inPhoto.getTimestamp().createMinusOffset(inOffset);
                int numPoints = inTrack.getNumPoints();
                for (int i=0; i<numPoints; i++)
                {