Ticket #2025: SuperSimplePatchThatMakesNoEffortToCheckIn.patch

File SuperSimplePatchThatMakesNoEffortToCheckIn.patch, 726 bytes (added by xeen, 3 years ago)

Check for click count and about if value is larger > 1

  • src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    diff -u -r -N orig/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
    old new  
    146146     * If in nodeway mode, insert the node into the way. 
    147147     */ 
    148148    @Override public void mouseClicked(MouseEvent e) { 
    149  
    150         if (e.getButton() != MouseEvent.BUTTON1) 
     149        if (e.getButton() != MouseEvent.BUTTON1 || e.getClickCount() > 1) 
    151150            return; 
    152151        if(!Main.map.mapView.isDrawableLayer()) 
    153152            return;