Changeset 18283 in josm for trunk/src/org/openstreetmap/josm/gui/tagging/TagTable.java
- Timestamp:
- 2021-10-17T15:17:42+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/TagTable.java
r17709 r18283 36 36 import org.openstreetmap.josm.tools.ImageProvider; 37 37 import org.openstreetmap.josm.tools.Logging; 38 import org.openstreetmap.josm.tools.Utils; 38 39 39 40 /** … … 89 90 // we are at the end. Append an empty row and move the focus to its second column 90 91 String key = ((TagModel) model.getValueAt(row, 0)).getName(); 91 if (! key.trim().isEmpty()) {92 if (!Utils.isStripEmpty(key)) { 92 93 model.appendNewTag(); 93 94 col = 0; … … 243 244 } 244 245 final int rowIdx = model.getRowCount()-1; 245 if (rowIdx < 0 || ! ((TagModel) model.getValueAt(rowIdx, 0)).getName().trim().isEmpty()) {246 if (rowIdx < 0 || !Utils.isStripEmpty(((TagModel) model.getValueAt(rowIdx, 0)).getName())) { 246 247 model.appendNewTag(); 247 248 }
Note:
See TracChangeset
for help on using the changeset viewer.