]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/undo/UndoDeletePoint.java
Version 13, August 2011
[GpsPrune.git] / tim / prune / undo / UndoDeletePoint.java
index 57abc98814ebef54551fc529f3c49be934d2eca1..adb2ea397d0baffcb3d5f410c850c8d3cc3b3cd1 100644 (file)
@@ -65,7 +65,9 @@ public class UndoDeletePoint implements UndoOperation
                                inTrackInfo.getPhotoList().addPhoto(_point.getPhoto(), _photoIndex);\r
                        }\r
                        // Ensure that photo is associated with point\r
-                       _point.getPhoto().setDataPoint(_point);\r
+                       if (_point.getPhoto().getDataPoint() != _point) {\r
+                               _point.getPhoto().setDataPoint(_point);\r
+                       }\r
                }\r
                // Restore previous status of following track point if necessary\r
                if (!_segmentStart)\r