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;
|
| 15 | 15 | import org.openstreetmap.josm.data.osm.OsmPrimitive; |
| 16 | 16 | import org.openstreetmap.josm.gui.Notification; |
| 17 | 17 | import org.openstreetmap.josm.tools.Shortcut; |
| | 18 | import org.openstreetmap.josm.tools.SubclassFilteredCollection; |
| 18 | 19 | |
| 19 | 20 | /** |
| 20 | 21 | * Extends current selection by selecting nodes on all touched ways |
| … |
… |
public class SelectAllInsideAction extends JosmAction {
|
| 35 | 36 | |
| 36 | 37 | if (!insideSelected.isEmpty()) { |
| 37 | 38 | ds.addSelected(insideSelected); |
| | 39 | ds.setSelected(new SubclassFilteredCollection<>(ds.getSelected(), OsmPrimitive::isSelectable)); |
| 38 | 40 | } else { |
| 39 | 41 | new Notification( |
| 40 | 42 | tr("Nothing found. Please select some closed ways or multipolygons to find all primitives inside them!")) |