]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/function/compress/CompressTrackFunction.java
Version 12, December 2010
[GpsPrune.git] / tim / prune / function / compress / CompressTrackFunction.java
index 865faeb4f4ae6a576aa2dfd80dd2a8e81e5c9c15..b347305c7968c511aa9e4072e291d56000a100cd 100644 (file)
@@ -72,7 +72,6 @@ public class CompressTrackFunction extends GenericFunction
         */
        private boolean[] preview()
        {
-               // System.out.println("track dialog preview");
                int numToDelete = 0;
                boolean[] deleteFlags = new boolean[_track.getNumPoints()];
                for (int i=0; i<_algorithms.length; i++)
@@ -172,7 +171,7 @@ public class CompressTrackFunction extends GenericFunction
                for (int i=0; i<deleteFlags.length; i++)
                {
                        DataPoint point = _track.getPoint(i);
-                       point.setMarkedForDeletion(deleteFlags[i] && !point.isWaypoint() && point.getPhoto() == null);
+                       point.setMarkedForDeletion(deleteFlags[i] && !point.hasMedia());
                }
 
                // Close dialog and inform listeners