Ignore:
Timestamp:
2017-05-28T03:43:59+02:00 (3 years ago)
Author:
Don-vip
Message:

sonar - fix various recent violations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapFrame.java

    r12177 r12267  
    784784        }
    785785        // if this is really a change (and not the first active layer)
    786         if (e.getPreviousActiveLayer() != null) {
    787             if (!modeChanged && mapMode != null) {
    788                 // Let mapmodes know about new active layer
    789                 mapMode.exitMode();
    790                 mapMode.enterMode();
    791             }
     786        if (e.getPreviousActiveLayer() != null && !modeChanged && mapMode != null) {
     787            // Let mapmodes know about new active layer
     788            mapMode.exitMode();
     789            mapMode.enterMode();
    792790        }
    793791
Note: See TracChangeset for help on using the changeset viewer.