Changeset 5301 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2012-06-25T21:25:50+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ZoomToAction.java
r5297 r5301 10 10 11 11 import org.openstreetmap.josm.Main; 12 import org.openstreetmap.josm.data.osm.Primitive Id;12 import org.openstreetmap.josm.data.osm.OsmPrimitive; 13 13 import org.openstreetmap.josm.gui.MapView.LayerChangeListener; 14 14 import org.openstreetmap.josm.gui.conflict.pair.nodes.NodeListTable; … … 67 67 return; 68 68 int row = rows[0]; 69 PrimitiveId primitive = this.table.getOsmPrimitivesTableModel().getReferredPrimitive(row);70 69 OsmDataLayer layer = this.table.getLayer(); 70 OsmPrimitive primitive = this.table.getPrimitiveToZoomTo(row, layer); 71 71 if (layer != null && primitive != null) { 72 72 layer.data.setSelected(primitive);
Note:
See TracChangeset
for help on using the changeset viewer.