Changeset 2528 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2009-11-28T12:13:12+01:00 (14 years ago)
Author:
Gubaer
Message:

see #3838: Selection behaves weird when adding nodes with double-click

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r2450 r2528  
    313313            // Change draw tool only if mouse position is nearly the same, as
    314314            // otherwise fast clicks will count as a double click
     315            getCurrentDataSet().setSelected(Collections.singleton(lastUsedNode));
    315316            finishDrawing();
    316317            return;
     
    463464                return;
    464465            }
    465             if(!wayIsFinishedTemp)
    466             {
     466            if(!wayIsFinishedTemp){
    467467                if(isSelfContainedWay(selectedWay, n0, n))
    468468                    return;
     
    892892        if (!Main.map.mapView.getBounds().contains(mousePos)) return;
    893893
    894         Graphics2D g2 = (Graphics2D) g;
     894        Graphics2D g2 = g;
    895895        g2.setColor(selectedColor);
    896896        g2.setStroke(new BasicStroke(3, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
Note: See TracChangeset for help on using the changeset viewer.