- Timestamp:
- 2010-01-07T21:25:13+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintVisitor.java
r2706 r2762 356 356 for (RelationMember m : r.getMembers()) 357 357 { 358 if (m.getMember().isDeleted()) { 359 putError(r, tr("Deleted member ''{0}'' in relation.", 360 m.getMember().getDisplayName(DefaultNameFormatter.getInstance())), true); 361 } else if(m.getMember().isIncomplete()) 358 if(m.getMember().isIncomplete()) 362 359 return; 363 360 else … … 366 363 { 367 364 Way w = m.getWay(); 368 if(w.getNodesCount() < 2) 369 { 370 putError(r, tr("Way ''{0}'' with less than two points.", 371 w.getDisplayName(DefaultNameFormatter.getInstance())), true); 372 } 373 else if("from".equals(m.getRole())) { 365 if(w.getNodesCount() < 2) { 366 continue; 367 } 368 369 if("from".equals(m.getRole())) { 374 370 if(fromWay != null) { 375 371 putError(r, tr("More than one \"from\" way found."), true); … … 671 667 // Fill inner and outer list with valid ways 672 668 for (RelationMember m : r.getMembers()) { 673 if (m.getMember().isDeleted()) { 674 putError(r, tr("Deleted member ''{0}'' in relation.", 675 m.getMember().getDisplayName(DefaultNameFormatter.getInstance())), true); 676 } else if (m.getMember().isIncomplete()) { 669 if (m.getMember().isIncomplete()) { 677 670 incomplete = true; 678 671 } else if(m.getMember().isDrawable()) { … … 680 673 Way w = m.getWay(); 681 674 if(w.getNodesCount() < 2) { 682 putError(r, tr("Way ''{0}'' with less than two points.",683 w.getDisplayName(DefaultNameFormatter.getInstance())), true);684 } 685 elseif("inner".equals(m.getRole())) {675 continue; 676 } 677 678 if("inner".equals(m.getRole())) { 686 679 inner.add(w); 687 680 } else if("outer".equals(m.getRole())) {
Note:
See TracChangeset
for help on using the changeset viewer.