Changeset 4254 in josm for trunk/src/org


Ignore:
Timestamp:
2011-07-16T21:31:13+02:00 (13 years ago)
Author:
stoecker
Message:

fix #6601 - improve warning prevention - don't warn for roles outer, inner, forward, backward and add hidden preferences

File:
1 edited

Legend:

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

    r3515 r4254  
    99import java.awt.event.KeyEvent;
    1010import java.util.ArrayList;
     11import java.util.Arrays;
    1112import java.util.Collection;
    1213import java.util.HashSet;
     
    289290
    290291        Iterator<List<Node>> chunkIt = wayChunks.iterator();
     292        Collection<String> nowarnroles = Main.pref.getCollection("way.split.roles.nowarn",
     293        Arrays.asList(new String[]{"outer", "inner", "forward", "backward"}));
    291294
    292295        // First, change the original way
     
    390393                    if(insert)
    391394                    {
    392                         if (rm.hasRole() && !("multipolygon".equals(type))) {
     395                        if (rm.hasRole() && !nowarnroles.contains(rm.getRole())) {
    393396                            warnmerole = true;
    394397                        }
Note: See TracChangeset for help on using the changeset viewer.