Ticket #7018: patch7018.patch

File patch7018.patch, 949 bytes (added by xeen, 14 years ago)
  • src/org/openstreetmap/josm/actions/mapmode/SelectAction.java

     
    884884        DataSet ds = getCurrentDataSet();
    885885
    886886        // not allowed together: do not change dataset selection, return early
    887         if ((shift && ctrl) || (ctrl && !released) || (!virtualWays.isEmpty()))
     887        // Virtual Ways: if non-empty the cursor is above a virtual node. So don't highlight
     888        // anything if about to drag the virtual node (i.e. !released) but continue if the
     889        // cursor is only released above a virtual node by accident (i.e. released). See #7018
     890        if ((shift && ctrl) || (ctrl && !released) || (!virtualWays.isEmpty() && !released))
    888891            return;
    889892
    890893        if (!released) {