Changeset 12691 in josm for trunk/src/org/openstreetmap/josm/data/UndoRedoHandler.java
- Timestamp:
- 2017-08-28T19:26:47+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/UndoRedoHandler.java
r12636 r12691 86 86 */ 87 87 public synchronized void add(final Command c) { 88 DataSet ds = Optional.ofNullable(c.getAffectedDataSet()).orElseGet(() -> Main Application.getLayerManager().getEditDataSet());88 DataSet ds = Optional.ofNullable(c.getAffectedDataSet()).orElseGet(() -> Main.main.getEditDataSet()); 89 89 Collection<? extends OsmPrimitive> oldSelection = null; 90 90 if (ds != null) { … … 115 115 if (commands.isEmpty()) 116 116 return; 117 DataSet ds = Main Application.getLayerManager().getEditDataSet();117 DataSet ds = Main.main.getEditDataSet(); 118 118 Collection<? extends OsmPrimitive> oldSelection = null; 119 119 if (ds != null) { … … 156 156 if (redoCommands.isEmpty()) 157 157 return; 158 DataSet ds = Main Application.getLayerManager().getEditDataSet();158 DataSet ds = Main.main.getEditDataSet(); 159 159 Collection<? extends OsmPrimitive> oldSelection = ds.getSelected(); 160 160 for (int i = 0; i < num; ++i) {
Note:
See TracChangeset
for help on using the changeset viewer.