Changeset 10413 in josm for trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
- Timestamp:
- 2016-06-18T00:06:41+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r10378 r10413 106 106 107 107 if (Main.main != null) { 108 OsmDataLayer editLayer = Main. main.getEditLayer();108 OsmDataLayer editLayer = Main.getLayerManager().getEditLayer(); 109 109 if (editLayer != null) { 110 110 editLayer.data.addDataSetListener(this); … … 174 174 if (history.getNumVersions() > 0) { 175 175 HistoryOsmPrimitive newLatest = null; 176 OsmDataLayer editLayer = Main. main.getEditLayer();176 OsmDataLayer editLayer = Main.getLayerManager().getEditLayer(); 177 177 if (editLayer != null) { 178 178 OsmPrimitive p = editLayer.data.getPrimitiveById(history.getId(), history.getType()); … … 532 532 if (latest == null) 533 533 return null; 534 OsmDataLayer editLayer = Main. main.getEditLayer();534 OsmDataLayer editLayer = Main.getLayerManager().getEditLayer(); 535 535 if (editLayer == null) 536 536 return null; … … 666 666 */ 667 667 public void unlinkAsListener() { 668 OsmDataLayer editLayer = Main. main.getEditLayer();668 OsmDataLayer editLayer = Main.getLayerManager().getEditLayer(); 669 669 if (editLayer != null) { 670 670 editLayer.data.removeDataSetListener(this);
Note:
See TracChangeset
for help on using the changeset viewer.