Ignore:
Timestamp:
2024-03-28T09:29:34+01:00 (2 months ago)
Author:
GerdP
Message:

see #23305 and #23555:
-revert most of the changes in r18988, it caused too many problems with plugins which relied on the old behaviour

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolverModel.java

    r19002 r19022  
    293293
    294294    /**
    295      * Prepare the default decisions for the current model.
    296      * @param decidedKeys set of tag keys for which the first value should be used
    297      * @since 18988
    298      */
    299     public void prepareDefaultTagDecisions(Set<String> decidedKeys) {
    300         for (MultiValueResolutionDecision decision : decisions.values()) {
    301             if (!decidedKeys.contains(decision.getKey()))
    302                 continue;
    303             List<String> values = decision.getValues();
    304             if (!values.isEmpty()) {
    305                 decision.keepOne(values.iterator().next());
    306             }
    307         }
    308         rebuild(false);
    309     }
    310 
    311     /**
    312295     * Returns the set of keys in conflict.
    313296     * @return the set of keys in conflict.
Note: See TracChangeset for help on using the changeset viewer.