Ignore:
Timestamp:
2020-08-29T19:16:21+02:00 (4 years ago)
Author:
simon04
Message:

Simplify boolean expression

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/MapObjectImpl.java

    r31429 r35534  
    9292
    9393    private boolean isVisibleLayer() {
    94         return layer == null || layer.isVisible() == null ? true : layer.isVisible();
     94        return layer == null || layer.isVisible() == null || layer.isVisible();
    9595    }
    9696
    9797    public boolean isVisible() {
    98         return visible == null ? isVisibleLayer() : visible.booleanValue();
     98        return visible == null ? isVisibleLayer() : visible;
    9999    }
    100100
Note: See TracChangeset for help on using the changeset viewer.