Ignore:
Timestamp:
2018-08-18T20:08:26+02:00 (7 years ago)
Author:
donvip
Message:

update to JOSM 14153

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/TheRing.java

    r33694 r34551  
    1212import javax.swing.JOptionPane;
    1313
    14 import org.openstreetmap.josm.Main;
    1514import org.openstreetmap.josm.command.AddCommand;
    1615import org.openstreetmap.josm.command.ChangeCommand;
     
    2423import org.openstreetmap.josm.data.osm.Way;
    2524import org.openstreetmap.josm.gui.MainApplication;
     25import org.openstreetmap.josm.spi.preferences.Config;
    2626import org.openstreetmap.josm.tools.Geometry;
    2727import org.openstreetmap.josm.tools.Geometry.PolygonIntersection;
     
    143143            }
    144144            if (pos == 0 && nodes1.size() == nodes2.size()) {
    145                 JOptionPane.showMessageDialog(Main.parent,
     145                JOptionPane.showMessageDialog(MainApplication.getMainFrame(),
    146146                        tr("Two rings are equal, and this must not be."), tr("Multipolygon from rings"), JOptionPane.ERROR_MESSAGE);
    147147                return null;
     
    331331        Way sourceCopy = new Way(source);
    332332        if (createMultipolygon) {
    333             Collection<String> linearTags = Main.pref.getList(PREF_MULTIPOLY + "lineartags", CreateMultipolygonAction.DEFAULT_LINEAR_TAGS);
     333            Collection<String> linearTags = Config.getPref().getList(PREF_MULTIPOLY + "lineartags", CreateMultipolygonAction.DEFAULT_LINEAR_TAGS);
    334334            relation = new Relation();
    335335            relation.put("type", "multipolygon");
Note: See TracChangeset for help on using the changeset viewer.