Ignore:
Timestamp:
2016-12-13T02:16:07+01:00 (7 years ago)
Author:
Don-vip
Message:

sonar - squid:S1066 - Collapsible "if" statements should be merged

File:
1 edited

Legend:

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

    r10217 r11386  
    118118
    119119    /**
    120      * Start drawing the selection rectangle if it was the 1st button (left
    121      * button)
     120     * Start drawing the selection rectangle if it was the 1st button (left button)
    122121     */
    123122    @Override
     
    132131    public void mouseDragged(MouseEvent e) {
    133132        if ((e.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) == MouseEvent.BUTTON1_DOWN_MASK &&
    134                 !(Main.isPlatformOsx() && e.getModifiersEx() == MAC_MOUSE_BUTTON3_MASK)) {
    135             if (iStartSelectionPoint != null) {
    136                 iEndSelectionPoint = e.getPoint();
    137                 iSlippyMapChooser.setSelection(iStartSelectionPoint, iEndSelectionPoint);
    138                 isSelecting = true;
    139             }
     133                !(Main.isPlatformOsx() && e.getModifiersEx() == MAC_MOUSE_BUTTON3_MASK) && iStartSelectionPoint != null) {
     134            iEndSelectionPoint = e.getPoint();
     135            iSlippyMapChooser.setSelection(iStartSelectionPoint, iEndSelectionPoint);
     136            isSelecting = true;
    140137        }
    141138    }
Note: See TracChangeset for help on using the changeset viewer.