Ignore:
Timestamp:
2014-02-10T02:04:36+01:00 (10 years ago)
Author:
donvip
Message:

[josm_undelete] fix #josm7520 - zoom to undelete objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/undelete/src/org/openstreetmap/josm/plugins/undelete/UndeleteAction.java

    r30271 r30273  
    1313
    1414import org.openstreetmap.josm.Main;
     15import org.openstreetmap.josm.actions.AutoScaleAction;
    1516import org.openstreetmap.josm.actions.JosmAction;
    1617import org.openstreetmap.josm.data.osm.DataSet;
     
    205206                    Main.map.repaint();
    206207                }
     208                GuiHelper.runInEDT(new Runnable() {
     209                                        @Override
     210                                        public void run() {
     211                                                AutoScaleAction.zoomTo(layer.data.allNonDeletedPrimitives());
     212                                        }
     213                                });
    207214            }
    208215        };
Note: See TracChangeset for help on using the changeset viewer.