Changeset 2794 in josm
- Timestamp:
- 2010-01-09T21:15:09+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/UserListDialog.java
r2711 r2794 261 261 262 262 public String getName() { 263 if (user == null) return null; 263 if (user == null) 264 return tr("<new element>"); 264 265 return user.getName(); 265 266 } … … 282 283 if (primitives == null || primitives.isEmpty()) return ret; 283 284 for (OsmPrimitive primitive: primitives) { 284 if (primitive.getUser() == null) {285 continue;286 }287 285 if (ret.containsKey(primitive.getUser())) { 288 286 ret.put(primitive.getUser(), ret.get(primitive.getUser()) + 1); … … 331 329 Set<User> users= new HashSet<User>(); 332 330 for (int index: rows) { 333 if (data.get(index).user == null) {334 continue;335 }336 331 users.add(data.get(index).user); 337 332 } … … 339 334 Collection<OsmPrimitive> byUser = new LinkedList<OsmPrimitive>(); 340 335 for (OsmPrimitive p : selected) { 341 if (p.getUser() == null) {342 continue;343 }344 336 if (users.contains(p.getUser())) { 345 337 byUser.add(p);
Note:
See TracChangeset
for help on using the changeset viewer.