Changeset 16465 in josm
- Timestamp:
- 2020-05-19T09:42:07+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/NodeListViewer.java
r16460 r16465 72 72 } 73 73 74 publicvoid prepare(PrimitiveId pid) {74 void prepare(PrimitiveId pid) { 75 75 zoomToNodeAction.setPrimitiveId(pid); 76 76 zoomToNodeAction.updateEnabledState(); … … 98 98 return; 99 99 IPrimitive p = getPrimitiveToZoom(); 100 if (p != null) { 101 OsmData<?, ?, ?, ?> ds = MainApplication.getLayerManager().getActiveData(); 102 if (ds != null) { 103 ds.setSelected(p.getPrimitiveId()); 104 AutoScaleAction.autoScale(AutoScaleMode.SELECTION); 105 } 100 if (p != null && p.isSelectable()) { 101 p.getDataSet().setSelected(p); 102 AutoScaleAction.autoScale(AutoScaleMode.SELECTION); 106 103 } 107 104 }
Note:
See TracChangeset
for help on using the changeset viewer.