Changeset 5952 in josm for trunk/src/org
- Timestamp:
- 2013-05-10T15:28:09+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r5903 r5952 1316 1316 double a = area / (aValue*aValue); 1317 1317 boolean lowerOnly = Main.pref.getBoolean("system_of_measurement.use_only_lower_unit", false); 1318 if (!lowerOnly && areaCustomValue > 0 && a > areaCustomValue / aValue*aValue && a < bValue*bValue / aValue*aValue) 1318 boolean customAreaOnly = Main.pref.getBoolean("system_of_measurement.use_only_custom_area_unit", false); 1319 if ((!lowerOnly && areaCustomValue > 0 && a > areaCustomValue / (aValue*aValue) && a < (bValue*bValue) / (aValue*aValue)) || customAreaOnly) 1319 1320 return formatText(area / areaCustomValue, areaCustomName); 1320 else if (!lowerOnly && a >= bValue*bValue /aValue*aValue)1321 else if (!lowerOnly && a >= (bValue*bValue) / (aValue*aValue)) 1321 1322 return formatText(area / (bValue*bValue), bName+"\u00b2"); 1322 1323 else if (a < 0.01) … … 1347 1348 * @since 3406 1348 1349 */ 1349 public static final SystemOfMeasurement IMPERIAL_SOM = new SystemOfMeasurement(0.3048, "ft", 1609.344, "mi"); 1350 public static final SystemOfMeasurement IMPERIAL_SOM = new SystemOfMeasurement(0.3048, "ft", 1609.344, "mi", 4046.86, "ac"); 1350 1351 1351 1352 /**
Note:
See TracChangeset
for help on using the changeset viewer.