Changeset 17702 in josm for trunk/src/org


Ignore:
Timestamp:
2021-04-01T23:17:01+02:00 (3 years ago)
Author:
simon04
Message:

fix #20699, see #20048 - Fix dialog result handling of "Automatic tag correction"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/corrector/TagCorrector.java

    r17597 r17702  
    158158            int answer = dialog.getValue();
    159159
    160             if (answer == JOptionPane.YES_OPTION) {
     160            if (answer == 1) {
    161161                for (Entry<OsmPrimitive, List<TagCorrection>> entry : tagCorrectionsMap.entrySet()) {
    162162                    OsmPrimitive primitive = entry.getKey();
     
    199199                    }
    200200                }
    201             } else if (answer != JOptionPane.NO_OPTION)
     201            } else if (answer != 2)
    202202                throw new UserCancelException();
    203203            return Collections.unmodifiableCollection(commands);
Note: See TracChangeset for help on using the changeset viewer.