Ignore:
Timestamp:
2016-02-19T23:41:45+01:00 (8 years ago)
Author:
wiktorn
Message:

ZoomPreferences.patch and NativeScaleLayerChange.patch by kolesar.

See: #12350

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java

    r9818 r9840  
    16561656                    break;
    16571657                case 1:
    1658                     if (Main.map.mapView.getNativeScaleLayer() == l) {
     1658                    NativeScaleLayer oldLayer = Main.map.mapView.getNativeScaleLayer();
     1659                    if (oldLayer == l) {
    16591660                        Main.map.mapView.setNativeScaleLayer(null);
    16601661                    } else if (l instanceof NativeScaleLayer) {
    16611662                        Main.map.mapView.setNativeScaleLayer((NativeScaleLayer) l);
     1663                        if (oldLayer != null) {
     1664                            int idx = getLayers().indexOf(oldLayer);
     1665                            if (idx >= 0) {
     1666                                fireTableCellUpdated(idx, col);
     1667                            }
     1668                        }
    16621669                    }
    16631670                    break;
Note: See TracChangeset for help on using the changeset viewer.