Changeset 5643 in josm
- Timestamp:
- 2012-12-28T20:16:48+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r5639 r5643 414 414 } 415 415 if (usage.unused()){ 416 if (!usage.hadKeys() || PROP_FILL_DEFAULT.get() || "force".equals(use_last_as_default)) { 416 if (auto_increment_selected != 0 && auto_increment != null) { 417 try { 418 textField.setText(Integer.toString(Integer.parseInt(lastValue.get(key)) + auto_increment_selected)); 419 } catch (NumberFormatException ex) { 420 // Ignore - cannot auto-increment if last was non-numeric 421 } 422 } 423 else if (!usage.hadKeys() || PROP_FILL_DEFAULT.get() || "force".equals(use_last_as_default)) { 417 424 // selected osm primitives are untagged or filling default values feature is enabled 418 425 if (!"false".equals(use_last_as_default) && lastValue.containsKey(key)) { 419 426 textField.setText(lastValue.get(key)); 420 } else if (auto_increment_selected != 0 && auto_increment != null) {421 try {422 textField.setText(Integer.toString(Integer.parseInt(lastValue.get(key)) + auto_increment_selected));423 } catch (NumberFormatException ex) {424 // Ignore - cannot auto-increment if last was non-numeric425 }426 427 } else { 427 428 textField.setText(default_); … … 447 448 originalValue = DIFFERENT; 448 449 } 449 if (locale_text == null) {450 if (locale_text == null) { 450 451 if (text != null) { 451 if (text_context != null) {452 if (text_context != null) { 452 453 locale_text = trc(text_context, fixPresetString(text)); 453 454 } else {
Note:
See TracChangeset
for help on using the changeset viewer.