Changeset 17684 in josm for trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserPanel.java
- Timestamp:
- 2021-03-28T20:43:23+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserPanel.java
r14463 r17684 10 10 11 11 import org.openstreetmap.josm.actions.JosmAction; 12 import org.openstreetmap.josm.data.osm.DataSet; 13 import org.openstreetmap.josm.data.osm.OsmPrimitive; 14 import org.openstreetmap.josm.data.osm.PrimitiveId; 15 import org.openstreetmap.josm.gui.MainApplication; 12 16 import org.openstreetmap.josm.tools.Destroyable; 13 17 … … 64 68 } 65 69 70 protected OsmPrimitive getPrimitiveFromDataSet(PointInTimeType pointInTime) { 71 DataSet dataSet = MainApplication.getLayerManager().getEditDataSet(); 72 PrimitiveId primitiveId = model.getPointInTime(pointInTime); 73 if (dataSet == null || primitiveId == null) { 74 return null; 75 } 76 return dataSet.getPrimitiveById(primitiveId.getUniqueId(), primitiveId.getType()); 77 } 78 66 79 protected final <T extends AbstractAction> T trackJosmAction(T action) { 67 80 if (action instanceof JosmAction) {
Note:
See TracChangeset
for help on using the changeset viewer.