Ignore:
Timestamp:
2009-07-03T12:34:14+02:00 (15 years ago)
Author:
stoecker
Message:

adapted plugins to JOSm 1722, UtilsPlugin still has a problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorShowAction.java

    r13497 r16290  
    8181                public void actionPerformed(ActionEvent e) {
    8282                    if(Main.map != null && Main.map.mapView != null) {
    83                         Main.map.mapView.zoomTo(Main.map.mapView.getCenter(), Main.map.mapView.getScale()*2);
     83                        Main.map.mapView.zoomToFactor(2);
    8484                    }
    8585                }
     
    9090                public void actionPerformed(ActionEvent e) {
    9191                    if(Main.map != null && Main.map.mapView != null) {
    92                         Main.map.mapView.zoomTo(Main.map.mapView.getCenter(), Main.map.mapView.getScale()/2);
     92                        Main.map.mapView.zoomToFactor(1/2);
    9393                    }
    9494                }
Note: See TracChangeset for help on using the changeset viewer.