Changeset 36136 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/ReconstructPolygonAction.java
- Timestamp:
- 2023-09-11T20:01:42+02:00 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/ReconstructPolygonAction.java
r36134 r36136 64 64 boolean wont = false; 65 65 for (RelationMember m : r.getMembers()) { 66 if (m.isWay()) { 66 if (m.isWay() && m.getWay().getReferrers().size() == 1) { 67 67 ways.add(m.getWay()); 68 68 } else { … … 72 72 if (wont) { 73 73 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), 74 tr("Multipolygon must consist only of ways"), tr("Reconstruct polygon"), JOptionPane.ERROR_MESSAGE); 74 tr("Multipolygon must consist only of ways with one referring relation"), 75 tr("Reconstruct polygon"), JOptionPane.ERROR_MESSAGE); 75 76 return; 76 77 } … … 174 175 candidateWay = tmp; 175 176 } 176 final Command deleteCommand = DeleteCommand.delete(Collections.singleton(w)); 177 if (deleteCommand != null) { 178 commands.add(deleteCommand); 179 } 177 commands.add(new DeleteCommand(w)); 180 178 } 181 179 }
Note:
See TracChangeset
for help on using the changeset viewer.