Ignore:
Timestamp:
2017-09-13T16:30:27+02:00 (7 years ago)
Author:
bastiK
Message:

see #15229 - fix deprecations caused by [12840]

File:
1 edited

Legend:

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

    r12735 r12841  
    775775            public void actionPerformed(ActionEvent e) {
    776776                boolean sel = ((JCheckBoxMenuItem) e.getSource()).getState();
    777                 Main.pref.put("statusbar.always-visible", sel);
     777                Main.pref.putBoolean("statusbar.always-visible", sel);
    778778            }
    779779        });
     
    10791079        // Compute total length of selected way(s) until an arbitrary limit set to 250 ways
    10801080        // in order to prevent performance issue if a large number of ways are selected (old behaviour kept in that case, see #8403)
    1081         int maxWays = Math.max(1, Main.pref.getInteger("selection.max-ways-for-statusline", 250));
     1081        int maxWays = Math.max(1, Main.pref.getInt("selection.max-ways-for-statusline", 250));
    10821082        if (!ways.isEmpty() && ways.size() <= maxWays) {
    10831083            dist = 0.0;
Note: See TracChangeset for help on using the changeset viewer.