Changeset 12846 in josm for trunk/src/org/openstreetmap/josm/data/UndoRedoHandler.java
- Timestamp:
- 2017-09-13T23:24:50+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/UndoRedoHandler.java
r12841 r12846 11 11 import org.openstreetmap.josm.data.osm.DataSet; 12 12 import org.openstreetmap.josm.data.osm.OsmPrimitive; 13 import org.openstreetmap.josm.spi.preferences.Config; 13 14 import org.openstreetmap.josm.tools.CheckParameterUtil; 14 15 … … 74 75 // Currently you have to undo the commands one by one. If 75 76 // this changes, a higher default value may be reasonable. 76 if (commands.size() > Main.pref.getInt("undo.max", 1000)) {77 if (commands.size() > Config.getPref().getInt("undo.max", 1000)) { 77 78 commands.removeFirst(); 78 79 }
Note:
See TracChangeset
for help on using the changeset viewer.