Ticket #14597: 0001-fix-2.patch

File 0001-fix-2.patch, 1.5 KB (added by bagage, 7 years ago)

patch proposal

  • utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/selection/SelectAllInsideAction.java

    From f6846425fddacd3f5ef965842bac9fc2c1eefad2 Mon Sep 17 00:00:00 2001
    From: Gautier Pelloux-Prayer <gautier+git@damsy.net>
    Date: Wed, 5 Apr 2017 20:16:24 +0200
    Subject: [PATCH] fix 2
    
    ---
     .../josm/plugins/utilsplugin2/selection/SelectAllInsideAction.java      | 2 ++
     1 file changed, 2 insertions(+)
    
    diff --git a/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/selection/SelectAllInsideAction.java b/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/selection/SelectAllInsideAction.java
    index 006e5f3fc..f023f6a97 100644
    a b import org.openstreetmap.josm.data.osm.DataSet;  
    1515import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1616import org.openstreetmap.josm.gui.Notification;
    1717import org.openstreetmap.josm.tools.Shortcut;
     18import org.openstreetmap.josm.tools.SubclassFilteredCollection;
    1819
    1920/**
    2021 * Extends current selection by selecting nodes on all touched ways
    public class SelectAllInsideAction extends JosmAction {  
    3536
    3637        if (!insideSelected.isEmpty()) {
    3738            ds.addSelected(insideSelected);
     39            ds.setSelected(new SubclassFilteredCollection<>(ds.getSelected(), OsmPrimitive::isSelectable));
    3840        } else {
    3941            new Notification(
    4042                    tr("Nothing found. Please select some closed ways or multipolygons to find all primitives inside them!"))