Changeset 19021 in josm


Ignore:
Timestamp:
2024-03-26T07:41:13+01:00 (3 months ago)
Author:
GerdP
Message:

fix #23574: Preference geoimage.viewer.centre.on.image=true is ignored on startup

  • let the preference set the flag centerView instead of enabling the action only
File:
1 edited

Legend:

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

    r18947 r19021  
    230230        btnLast = createNavigationButton(imageLastAction, buttonDim);
    231231
     232        centerView = Config.getPref().getBoolean("geoimage.viewer.centre.on.image", false);
    232233        tbCentre = new JToggleButton(imageCenterViewAction);
    233         tbCentre.setSelected(Config.getPref().getBoolean("geoimage.viewer.centre.on.image", false));
     234        tbCentre.setSelected(centerView);
    234235        tbCentre.setPreferredSize(buttonDim);
    235236
Note: See TracChangeset for help on using the changeset viewer.