Changeset 23892 in osm for applications/editors/josm


Ignore:
Timestamp:
2010-10-28T00:07:01+02:00 (14 years ago)
Author:
bilbo
Message:

Fixes bug 5569 - multipolygon can be constructed from single way

File:
1 edited

Legend:

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

    r23889 r23892  
    6161    Collection < Way > selectedWays = Main.main.getCurrentDataSet().getSelectedWays();
    6262
    63     if (selectedWays.size() < 2) {
    64       JOptionPane.showMessageDialog(Main.parent, tr("You must select at least two ways."));
     63    if (selectedWays.size() < 1) {
     64      // Sometimes it make sense creating multipoly of only one way (so it will form outer way)
     65      // and then splitting the way later (so there are multiple ways forming outer way)
     66      JOptionPane.showMessageDialog(Main.parent, tr("You must select at one way."));
    6567      return;
    6668    }
Note: See TracChangeset for help on using the changeset viewer.