diff --git a/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java b/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
index 261639f..4788771 100644
|
a
|
b
|
public class LayerListDialog extends ToggleDialog {
|
| 1655 | 1655 | l.setVisible(true); |
| 1656 | 1656 | break; |
| 1657 | 1657 | case 1: |
| 1658 | | if (Main.map.mapView.getNativeScaleLayer() == l) { |
| | 1658 | NativeScaleLayer oldLayer = Main.map.mapView.getNativeScaleLayer(); |
| | 1659 | if (oldLayer == l) { |
| 1659 | 1660 | Main.map.mapView.setNativeScaleLayer(null); |
| 1660 | 1661 | } else if (l instanceof NativeScaleLayer) { |
| 1661 | 1662 | 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 | } |
| 1662 | 1669 | } |
| 1663 | 1670 | break; |
| 1664 | 1671 | case 2: |