Ticket #19196: 19196.1.patch
File 19196.1.patch, 1.6 KB (added by , 4 years ago) |
---|
-
src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
56 56 mapPaintStylesUpdated(); 57 57 } 58 58 }); 59 Config.getPref().addPreferenceChangeListener(e -> { 60 if (e.getKey().contains("mappaint")) { 61 MapPaintStyles.readFromPreferences(); 62 } 63 }); 59 64 } 60 65 61 66 private static ElemStyles styles = new ElemStyles(); -
src/org/openstreetmap/josm/gui/preferences/display/ColorPreference.java
390 390 391 391 @Override 392 392 public boolean ok() { 393 boolean ret = false;394 393 for (ColorEntry d : tableModel.getDeleted()) { 395 394 d.toProperty().remove(); 396 395 } 397 396 for (ColorEntry e : tableModel.getData()) { 398 if (e.info.getValue() != null && e.toProperty().put(e.info.getValue()) 399 && NamedColorProperty.COLOR_CATEGORY_MAPPAINT.equals(e.info.getCategory())) { 400 ret = true; 397 if (e.info.getValue() != null) { 398 e.toProperty().put(e.info.getValue()); 401 399 } 402 400 } 403 401 OsmDataLayer.createHatchTexture(); 404 return ret;402 return false; 405 403 } 406 404 407 405 @Override