Changeset 35196 in osm for applications/editors/josm/plugins/reltoolbox
- Timestamp:
- 2019-10-26T14:30:19+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/FindRelationAction.java
r34551 r35196 179 179 for (String key : r.keySet()) { 180 180 if (key.contains(keywords[i]) || r.get(key).toLowerCase().contains(keywords[i]) 181 || tr(r.get(key)).toLowerCase().contains(keywords[i])) { 181 || safetr(r.get(key)).toLowerCase().contains(keywords[i])) { 182 182 ok = true; 183 183 break; … … 200 200 } 201 201 202 private static String safetr(String s) { 203 try { 204 return tr(s); 205 } catch (IllegalArgumentException e) { 206 Logging.trace(e); 207 return s; 208 } 209 } 210 202 211 /** 203 212 * I admit, some of it was copypasted from {@link org.openstreetmap.josm.gui.dialogs.RelationListDialog.RelationListModel}.
Note:
See TracChangeset
for help on using the changeset viewer.