Changeset 11743 in josm


Ignore:
Timestamp:
2017-03-18T23:19:45+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #13922 - make sure Download*InViewAction download their respective data without changing the current view

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
2 edited

Legend:

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

    r10318 r11743  
    2525    }
    2626
     27    /**
     28     * Constructs a new {@code DownloadNotesInViewAction} with note icon.
     29     * @return a new {@code DownloadNotesInViewAction} with note icon
     30     */
    2731    public static DownloadNotesInViewAction newActionWithNoteIcon() {
    2832        return new DownloadNotesInViewAction("dialogs/notes/note_open");
    2933    }
    3034
     35    /**
     36     * Constructs a new {@code DownloadNotesInViewAction} with download icon.
     37     * @return a new {@code DownloadNotesInViewAction} with download icon
     38     */
    3139    public static DownloadNotesInViewAction newActionWithDownloadIcon() {
    3240        return new DownloadNotesInViewAction("download");
     
    3745        final Bounds bounds = Main.map.mapView.getRealBounds();
    3846        DownloadNotesTask task = new DownloadNotesTask();
     47        task.setZoomAfterDownload(false);
    3948        Future<?> future = task.download(false, bounds, null);
    4049        Main.worker.submit(new PostDownloadHandler(task, future));
  • trunk/src/org/openstreetmap/josm/actions/DownloadOsmInViewAction.java

    r10910 r11743  
    3333        final Bounds bounds = Main.map.mapView.getRealBounds();
    3434        DownloadOsmInViewTask task = new DownloadOsmInViewTask();
     35        task.setZoomAfterDownload(false);
    3536        Future<?> future = task.download(bounds);
    3637        Main.worker.submit(new PostDownloadHandler(task, future));
Note: See TracChangeset for help on using the changeset viewer.