Changeset 27710 in osm


Ignore:
Timestamp:
2012-02-06T04:17:26+01:00 (13 years ago)
Author:
joshdoe
Message:

utilsplugin2: allow Replace Geometry to upgrade node with relation memberships

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/dumbutils/ReplaceGeometryAction.java

    r27698 r27710  
    8181     */
    8282    public void replaceNode(Node node, OsmPrimitive target) {
    83         if (!node.getReferrers().isEmpty()) {
    84             JOptionPane.showMessageDialog(Main.parent, tr("Node belongs to way(s) or relation(s), cannot replace."),
     83        if (!OsmPrimitive.getFilteredList(node.getReferrers(), Way.class).isEmpty()) {
     84            JOptionPane.showMessageDialog(Main.parent, tr("Node belongs to way(s), cannot replace."),
    8585                    TITLE, JOptionPane.INFORMATION_MESSAGE);
    8686            return;
Note: See TracChangeset for help on using the changeset viewer.