Changeset 16046 in josm


Ignore:
Timestamp:
2020-03-06T00:23:38+01:00 (5 years ago)
Author:
simon04
Message:

see #18864 - ComboMultiSelect.Renderer: use short for preferred width/height fields

Reduces retained size of TaggingPreset from 1_663_120 to 1_633_408 (de).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/ComboMultiSelect.java

    r16045 r16046  
    141141
    142142            // Cache size
    143             item.preferredWidth = lbl.getPreferredSize().width;
    144             item.preferredHeight = lbl.getPreferredSize().height;
     143            item.preferredWidth = (short) lbl.getPreferredSize().width;
     144            item.preferredHeight = (short) lbl.getPreferredSize().height;
    145145
    146146            // We do not want the editor to have the maximum height of all
     
    225225
    226226        /** Cached width (currently only for Combo) to speed up preset dialog initialization */
    227         public int preferredWidth = -1; // NOSONAR
     227        public short preferredWidth = -1; // NOSONAR
    228228        /** Cached height (currently only for Combo) to speed up preset dialog initialization */
    229         public int preferredHeight = -1; // NOSONAR
     229        public short preferredHeight = -1; // NOSONAR
    230230
    231231        /**
Note: See TracChangeset for help on using the changeset viewer.