X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fundo%2FUndoCorrelatePhotos.java;h=39c7a86468fcaffde516767591def878307b6c60;hp=3c25837c81e107695035455930b2a5bfe5c39cb6;hb=140e9d165f85c3d4f0435a311e091209313faa2a;hpb=c0387c124840c9407e040600fda88f3c3e8f6aa6 diff --git a/tim/prune/undo/UndoCorrelatePhotos.java b/tim/prune/undo/UndoCorrelatePhotos.java index 3c25837..39c7a86 100644 --- a/tim/prune/undo/UndoCorrelatePhotos.java +++ b/tim/prune/undo/UndoCorrelatePhotos.java @@ -60,10 +60,14 @@ public class UndoCorrelatePhotos implements UndoOperation for (int i=0; i<_photoPoints.length; i++) { Photo photo = inTrackInfo.getPhotoList().getPhoto(i); - DataPoint point = _photoPoints[i]; - photo.setDataPoint(point); - if (point != null) { - point.setPhoto(photo); + // Only need to look at connected photos, if they're still tagged then leave them + if (photo.getCurrentStatus() == Photo.Status.CONNECTED) + { + DataPoint point = _photoPoints[i]; + photo.setDataPoint(point); + if (point != null) { + point.setPhoto(photo); + } } } // clear selection