Changeset 23889 in osm for applications/editors/josm


Ignore:
Timestamp:
2010-10-27T23:42:42+02:00 (14 years ago)
Author:
bilbo
Message:

Fix multipolygon not creating relation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/multipoly/src/multipoly/MultipolyAction.java

    r23885 r23889  
    7474    Relation relation = this.createRelation(polygon);
    7575
    76     //open relation edit window, if set up in preferences
    7776    if (Main.pref.getBoolean("multipoly.show-relation-editor", false)) {
     77      //Open relation edit window, if set up in preferences
    7878      RelationEditor editor = RelationEditor.getEditor(Main.main.getEditLayer(), relation, null);
    7979      editor.setVisible(true);
     80    } else {
     81      //Just add the relation
     82      Main.main.undoRedo.add(new AddCommand(relation));
     83      Main.map.repaint();
    8084    }
    8185  }
Note: See TracChangeset for help on using the changeset viewer.