Changeset 34778 in osm for applications


Ignore:
Timestamp:
2018-12-14T07:53:25+01:00 (6 years ago)
Author:
gerdp
Message:

fix #8595 Split Object does not work when selection is clear

Patch by mdk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/SplitObjectAction.java

    r34454 r34778  
    8383                }
    8484            }
     85        } else if (selectedWays.size() == 1) {
     86            selectedWay = selectedWays.get(0);      // two nodes and a way is selected, so use this selected way
    8587        }
    8688
     
    223225     * input for splitting (this would be too expensive to be carried
    224226     * out from the selectionChanged listener).
     227     * @param selection the selection
     228     * @return true if the selection is usable
    225229     */
    226230    private boolean checkSelection(Collection<? extends OsmPrimitive> selection) {
Note: See TracChangeset for help on using the changeset viewer.