Ignore:
Timestamp:
2012-02-10T20:08:20+01:00 (13 years ago)
Author:
akks
Message:

'ImageryAdjust: Adjust while holding Y'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imageryadjust/src/imageryadjust/ImageryAdjustPlugin.java

    r24812 r27744  
    11package imageryadjust;
    22
     3import javax.swing.Action;
    34import org.openstreetmap.josm.gui.IconToggleButton;
    45import org.openstreetmap.josm.gui.MapFrame;
     
    1415    @Override
    1516    public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {
    16         if (newFrame == null) return;
     17        if (oldFrame == null && newFrame != null) {
    1718        newFrame.addMapMode(new IconToggleButton(new ImageryAdjustMapMode(newFrame)));
     19        }
    1820    }
    1921}
Note: See TracChangeset for help on using the changeset viewer.