Ignore:
Timestamp:
2017-03-08T21:18:57+01:00 (7 years ago)
Author:
Don-vip
Message:

more usages of Utils.clamp

File:
1 edited

Legend:

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

    r11674 r11702  
    184184        mapImage.offsetY = Math.round(offsetYF);
    185185
    186         mapImage.alpha = Math.min(255, Math.max(0, Main.pref.getInteger("mappaint.icon-image-alpha", 255)));
     186        mapImage.alpha = Utils.clamp(Main.pref.getInteger("mappaint.icon-image-alpha", 255), 0, 255);
    187187        Integer pAlpha = Utils.colorFloat2int(c.get(keys[ICON_OPACITY_IDX], null, float.class));
    188188        if (pAlpha != null) {
Note: See TracChangeset for help on using the changeset viewer.