Changeset 7256 in josm for trunk


Ignore:
Timestamp:
2014-06-20T12:10:22+02:00 (10 years ago)
Author:
bastiK
Message:

fixed #10173 - Modification of styles without any data layer causes an exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java

    r7248 r7256  
    311311                    fireMapPaintSylesUpdated();
    312312                    styles.clearCached();
    313                     Main.map.mapView.preferenceChanged(null);
    314                     Main.map.mapView.repaint();
     313                    if (Main.isDisplayingMapView()) {
     314                        Main.map.mapView.preferenceChanged(null);
     315                        Main.map.mapView.repaint();
     316                    }
    315317                }
    316318            });
Note: See TracChangeset for help on using the changeset viewer.