Changeset 6030 in josm for trunk/src/org
- Timestamp:
- 2013-06-26T20:53:47+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/TestError.java
r5925 r6030 132 132 */ 133 133 public Collection<? extends OsmPrimitive> getSelectablePrimitives() { 134 List<OsmPrimitive> selectablePrimitives = new ArrayList<OsmPrimitive>(primitives.size());135 for (OsmPrimitive o : primitives) {136 if (o.isSelectable()) {137 selectablePrimitives.add(o);138 }139 }134 List<OsmPrimitive> selectablePrimitives = new ArrayList<OsmPrimitive>(primitives.size()); 135 for (OsmPrimitive o : primitives) { 136 if (o.isSelectable()) { 137 selectablePrimitives.add(o); 138 } 139 } 140 140 return selectablePrimitives; 141 141 } 142 143 142 144 143 /** … … 146 145 * @param primitives the list of primitives affected by this error 147 146 */ 148 149 147 public void setPrimitives(List<OsmPrimitive> primitives) { 150 148 this.primitives = primitives; … … 244 242 */ 245 243 public Command getFix() { 246 if (tester == null || !tester.isFixable(this) )244 if (tester == null || !tester.isFixable(this) || primitives.isEmpty()) 247 245 return null; 248 246
Note:
See TracChangeset
for help on using the changeset viewer.