Ignore:
Timestamp:
2014-01-29T21:14:07+01:00 (10 years ago)
Author:
simon04
Message:

fix #8413 - Presets: no not apply use_last_as_default when calling the preset dialog on an object with some tags of this preset already set

This avoids wrongs address tags when using the address preset.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java

    r6738 r6772  
    275275    }
    276276
     277    static boolean presetInitiallyMatches = false;
     278
    277279    @Override
    278280    public void actionPerformed(ActionEvent e) {
     
    281283
    282284        Collection<OsmPrimitive> sel = createSelection(Main.main.getCurrentDataSet().getSelected());
     285        presetInitiallyMatches = !sel.isEmpty() && Utils.forAll(sel, this);
    283286        int answer = showDialog(sel, supportsRelation());
    284287
Note: See TracChangeset for help on using the changeset viewer.