Changeset 5541 in josm for trunk/src/org
- Timestamp:
- 2012-10-28T12:43:17+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java
r5391 r5541 276 276 if (imageryType != that.imageryType) return false; 277 277 if (url != null ? !url.equals(that.url) : that.url != null) return false; 278 if (name != null ? !name.equals(that.name) : that.name != null) return false; 278 279 279 280 return true; -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java
r5493 r5541 219 219 JLabel label = (JLabel) super.getTableCellRendererComponent( 220 220 table, value, isSelected, hasFocus, row, column); 221 String t = value.toString();222 221 label.setBackground(Main.pref.getUIColor("Table.background")); 223 222 if (isSelected) { 224 223 label.setForeground(Main.pref.getUIColor("Table.foreground")); 225 224 } 226 for(ImageryInfo l : layers) 227 { 228 if(l.getExtendedUrl().equals(t)) { 229 label.setBackground(Main.pref.getColor( 230 marktr("Imagery Background: Default"), 231 new Color(200,255,200))); 232 break; 225 if (value != null) { // Fix #8159 226 String t = value.toString(); 227 for (ImageryInfo l : layers) { 228 if (l.getExtendedUrl().equals(t)) { 229 label.setBackground(Main.pref.getColor( 230 marktr("Imagery Background: Default"), 231 new Color(200,255,200))); 232 break; 233 } 233 234 } 234 235 }
Note:
See TracChangeset
for help on using the changeset viewer.