Changeset 28708 in osm
- Timestamp:
- 2012-09-11T17:50:23+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/reltoolbox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/build.xml
r28703 r28708 30 30 <project name="reltoolbox" default="dist" basedir="."> 31 31 <!-- enter the SVN commit message --> 32 <property name="commit.message" value="RelToolbox: added warning messages to the warning icon hint"/>32 <property name="commit.message" value="RelToolbox: fix possible NPE in associatedStreet fixer"/> 33 33 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 34 <property name="plugin.main.version" value="5018"/> -
applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/AssociatedStreetFixer.java
r28703 r28708 46 46 // check that all street members have same name as relation (???) 47 47 String streetName = rel.get("name"); 48 if (streetName == null) streetName = ""; 48 49 for (RelationMember m : rel.getMembers()) { 49 if (m.getRole().equals( "street") && !m.getWay().get("name").equals(streetName)) {50 if ("street".equals(m.getRole()) && !streetName.equals(m.getWay().get("name"))) { 50 51 setWarningMessage(tr("Relation has streets with different names")); 51 52 return false;
Note:
See TracChangeset
for help on using the changeset viewer.