Changeset 13587 in josm for trunk


Ignore:
Timestamp:
2018-03-30T19:49:44+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #16139 - geojson: fix empty bounding box

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/GeoJSONWriter.java

    r13173 r13587  
    145145
    146146    private static JsonArrayBuilder getCoorArray(JsonArrayBuilder builder, EastNorth c) {
    147         return builder != null ? builder : Json.createArrayBuilder()
     147        return (builder != null ? builder : Json.createArrayBuilder())
    148148                .add(BigDecimal.valueOf(c.getX()).setScale(11, RoundingMode.HALF_UP))
    149149                .add(BigDecimal.valueOf(c.getY()).setScale(11, RoundingMode.HALF_UP));
Note: See TracChangeset for help on using the changeset viewer.