Ignore:
Timestamp:
2008-07-24T08:41:19+02:00 (16 years ago)
Author:
stoecker
Message:

No longer make a created_by conflict for way or node joining. In case of conflicts use JOSM as new value.

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
2 edited

Legend:

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

    r699 r734  
    171171                                newWay.put(e.getKey(), combined);
    172172                        } else if (e.getValue().size() > 1) {
    173                                 JComboBox c = new JComboBox(e.getValue().toArray());
    174                                 c.setEditable(true);
    175                                 p.add(new JLabel(e.getKey()), GBC.std());
    176                                 p.add(Box.createHorizontalStrut(10), GBC.std());
    177                                 p.add(c, GBC.eol());
    178                                 components.put(e.getKey(), c);
     173                                if("created_by".equals(e.getKey()))
     174                                {
     175                                        newWay.put("created_by", "JOSM");
     176                                }
     177                                else
     178                                {
     179                                        JComboBox c = new JComboBox(e.getValue().toArray());
     180                                        c.setEditable(true);
     181                                        p.add(new JLabel(e.getKey()), GBC.std());
     182                                        p.add(Box.createHorizontalStrut(10), GBC.std());
     183                                        p.add(c, GBC.eol());
     184                                        components.put(e.getKey(), c);
     185                                }
    179186                        } else
    180187                                newWay.put(e.getKey(), e.getValue().iterator().next());
  • trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java

    r627 r734  
    171171                                newNode.put(e.getKey(), combined);
    172172                        } else if (e.getValue().size() > 1) {
    173                                 JComboBox c = new JComboBox(e.getValue().toArray());
    174                                 c.setEditable(true);
    175                                 p.add(new JLabel(e.getKey()), GBC.std());
    176                                 p.add(Box.createHorizontalStrut(10), GBC.std());
    177                                 p.add(c, GBC.eol());
    178                                 components.put(e.getKey(), c);
     173                                if("created_by".equals(e.getKey()))
     174                                {
     175                                        newNode.put("created_by", "JOSM");
     176                                }
     177                                else
     178                                {
     179                                        JComboBox c = new JComboBox(e.getValue().toArray());
     180                                        c.setEditable(true);
     181                                        p.add(new JLabel(e.getKey()), GBC.std());
     182                                        p.add(Box.createHorizontalStrut(10), GBC.std());
     183                                        p.add(c, GBC.eol());
     184                                        components.put(e.getKey(), c);
     185                                }
    179186                        } else
    180187                                newNode.put(e.getKey(), e.getValue().iterator().next());
Note: See TracChangeset for help on using the changeset viewer.