- Timestamp:
- 2020-04-13T21:08:56+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesCellRenderer.java
r16283 r16292 120 120 str = "<html><body>" + str + " <i><" + label.a + "></i></body></html>"; 121 121 } 122 } else if (column == 1 && str != null && String.valueOf( table.getModel().getValueAt(row, 0)).contains("colour")) {122 } else if (column == 1 && str != null && String.valueOf(getKeyInRow(table, row)).contains("colour")) { 123 123 enableHTML = true; 124 124 // U+25A0 BLACK SQUARE … … 133 133 key = str; 134 134 } else if (column == 1) { 135 Object value0 = table.getModel().getValueAt(row, 0);135 Object value0 = getKeyInRow(table, row); 136 136 if (value0 instanceof String) { 137 137 key = (String) value0; … … 142 142 } 143 143 return c; 144 } 145 146 private Object getKeyInRow(JTable table, int row) { 147 return table.getModel().getValueAt(table.convertRowIndexToModel(row), 0); 144 148 } 145 149
Note:
See TracChangeset
for help on using the changeset viewer.