Changeset 18211 in josm for trunk/src/org/openstreetmap/josm/gui/io/LayerNameAndFilePathTableCell.java
- Timestamp:
- 2021-09-12T02:10:25+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/LayerNameAndFilePathTableCell.java
r18208 r18211 184 184 private String makePathFit(String t) { 185 185 boolean hasEllipsis = false; 186 while ( t != null && !t.isEmpty()) {186 while (!Utils.isEmpty(t)) { 187 187 int txtwidth = lblFilename.getFontMetrics(lblFilename.getFont()).stringWidth(t); 188 188 if (txtwidth < lblFilename.getWidth() || t.lastIndexOf(File.separator) < ELLIPSIS.length()) {
Note:
See TracChangeset
for help on using the changeset viewer.