X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fundo%2FUndoDeletePhoto.java;h=45be6addcb5040fa2844caad22f0c236ddd6fa91;hp=5edd37bfb664cb3a65fa1d52d37f097440d0bb97;hb=326f489e36aa7f235bc19409a57bf4955cd50f24;hpb=8c8868ae29b3252f02e094c02307384cf61ba667 diff --git a/tim/prune/undo/UndoDeletePhoto.java b/tim/prune/undo/UndoDeletePhoto.java index 5edd37b..45be6ad 100644 --- a/tim/prune/undo/UndoDeletePhoto.java +++ b/tim/prune/undo/UndoDeletePhoto.java @@ -9,7 +9,7 @@ import tim.prune.data.TrackInfo; /** * Operation to undo a delete of a single photo, either with or without point */ -public class UndoDeletePhoto implements UndoOperation +public class UndoDeletePhoto extends UndoDeleteOperation { private int _photoIndex = -1; private Photo _photo = null; @@ -58,6 +58,8 @@ public class UndoDeletePhoto implements UndoOperation { throw new UndoException(getDescription()); } + // Change the current point/range selection if required + modifySelection(inTrackInfo, _pointIndex, _pointIndex); } else {