Changeset 9920 in josm for trunk/src


Ignore:
Timestamp:
2016-03-04T18:55:19+01:00 (9 years ago)
Author:
wiktorn
Message:

Move getting defaults to initialization so subclasses can override the setting in constructor.

Closes: #12589

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r9865 r9920  
    133133    // needed public access for session exporter
    134134    /** if layers changes automatically, when user zooms in */
    135     public boolean autoZoom;
     135    public boolean autoZoom = PROP_DEFAULT_AUTOZOOM.get();
    136136    /** if layer automatically loads new tiles */
    137     public boolean autoLoad;
     137    public boolean autoLoad = PROP_DEFAULT_AUTOLOAD.get();
    138138    /** if layer should show errors on tiles */
    139     public boolean showErrors;
     139    public boolean showErrors = PROP_DEFAULT_SHOWERRORS.get();
    140140
    141141    /**
     
    601601        projectionChanged(null, Main.getProjection()); // check if projection is supported
    602602        initTileSource(this.tileSource);
    603 
    604         autoLoad = PROP_DEFAULT_AUTOLOAD.get();
    605         autoZoom = PROP_DEFAULT_AUTOZOOM.get();
    606         showErrors = PROP_DEFAULT_SHOWERRORS.get();
    607603
    608604        final MouseAdapter adapter = new MouseAdapter() {
Note: See TracChangeset for help on using the changeset viewer.