Changeset 11702 in josm for trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java
- Timestamp:
- 2017-03-08T21:18:57+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java
r11613 r11702 294 294 295 295 // shrink to range 296 heatMapDrawGain = Math.min(Math.max(-10, heatMapDrawGain), 10);296 heatMapDrawGain = Utils.clamp(heatMapDrawGain, -10, 10); 297 297 298 298 neutralColor = getColor(layerName, true); … … 732 732 733 733 // adjust global settings 734 final int globalLineWidth = Math.min(Math.max(lineWidth, 1), 20);734 final int globalLineWidth = Utils.clamp(lineWidth, 1, 20); 735 735 736 736 // cache scale of view … … 1157 1157 1158 1158 // adjust global settings ( zero = default line width ) 1159 final int globalLineWidth = (0 == lineWidth) ? 1 : Math.min(Math.max(lineWidth, 1), 20);1159 final int globalLineWidth = (0 == lineWidth) ? 1 : Utils.clamp(lineWidth, 1, 20); 1160 1160 1161 1161 // 1st setup virtual paint area ----------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.