Changeset 5734 in josm for trunk


Ignore:
Timestamp:
2013-02-20T21:00:39+01:00 (12 years ago)
Author:
Don-vip
Message:

fix #8116 - Update status line message when mouse button is released in select mode

File:
1 edited

Legend:

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

    r5653 r5734  
    4545import org.openstreetmap.josm.gui.MapFrame;
    4646import org.openstreetmap.josm.gui.MapView;
     47import org.openstreetmap.josm.gui.NavigatableComponent;
    4748import org.openstreetmap.josm.gui.SelectionManager;
    4849import org.openstreetmap.josm.gui.SelectionManager.SelectionEnded;
     
    437438            }
    438439            OsmPrimitive toSelect = cycleManager.cycleSetup(nearestPrimitive, e.getPoint());
    439             selectPrims(mv.asColl(toSelect), false, false);
     440            selectPrims(NavigatableComponent.asColl(toSelect), false, false);
    440441            useLastMoveCommandIfPossible();
    441442            break;
     
    573574            if (getCurrentDataSet().getSelected().isEmpty() && !cancelDrawMode) {
    574575                Main.map.selectDrawTool(true);
     576                updateStatusLine();
    575577                return;
    576578            }
     
    851853    @Override
    852854    public String getModeHelpText() {
    853         if (mode == Mode.select)
     855        if (mode == Mode.select && mouseDownButton == MouseEvent.BUTTON1 && mouseReleaseTime < mouseDownTime)
    854856            return tr("Release the mouse button to select the objects in the rectangle.");
    855857        else if (mode == Mode.move) {
     
    870872    }
    871873
     874    /**
     875     * Enable or diable the lasso mode
     876     * @param lassoMode true to enable the lasso mode, false otherwise
     877     */
    872878    public void setLassoMode(boolean lassoMode) {
    873879        this.selectionManager.setLassoMode(lassoMode);
Note: See TracChangeset for help on using the changeset viewer.