Ignore:
Timestamp:
2015-10-23T12:12:50+02:00 (9 years ago)
Author:
Don-vip
Message:

fix #11971 - -/=`key in Overpass Download changes map size

Location:
trunk/src/org/openstreetmap/josm/gui/download
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java

    r8840 r8932  
    117117        pnl.add(cbDownloadNotes, GBC.eol().insets(50, 5, 1, 5));
    118118
     119        // must be created before hook
     120        slippyMapChooser = new SlippyMapChooser();
     121
    119122        // hook for subclasses
    120123        buildMainPanelAboveDownloadSelections(pnl);
    121 
    122         slippyMapChooser = new SlippyMapChooser();
    123124
    124125        // predefined download selections
  • trunk/src/org/openstreetmap/josm/gui/download/SlippyMapChooser.java

    r8510 r8932  
    99import java.beans.PropertyChangeListener;
    1010
     11import javax.swing.ActionMap;
    1112import javax.swing.JPanel;
    1213
     
    1617
    1718/**
    18  * JComponent that displays the slippy map tiles
     19 * JComponent that displays the slippy map tiles.
    1920 *
    2021 * @author Tim Haussmann
    21  *
     22 * @since 1390
    2223 */
    2324public class SlippyMapChooser extends JPanel implements DownloadSelection, PropertyChangeListener {
    2425
    2526    private DownloadDialog iGui;
    26     private SlippyMapBBoxChooser pnlSlippyMapBBoxChooser;
     27    private final SlippyMapBBoxChooser pnlSlippyMapBBoxChooser;
    2728    // standard dimension
    2829    private Dimension iDownloadDialogDimension;
     
    8788        }
    8889    }
     90
     91    /**
     92     * Returns the action map of the underlying navigation component.
     93     * @return the action map of the underlying navigation component
     94     * @since 8932
     95     */
     96    public final ActionMap getNavigationComponentActionMap() {
     97        return pnlSlippyMapBBoxChooser.getActionMap();
     98    }
    8999}
Note: See TracChangeset for help on using the changeset viewer.