Ignore:
Timestamp:
2009-07-04T14:21:53+02:00 (15 years ago)
Author:
stoecker
Message:

adapted to JOSM 1728

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/PicLayerAbstract.java

    r16290 r16302  
    117117            m_initial_position = m_position = Main.map.mapView.getCenter();
    118118            // Initial scale at which the image was loaded
    119             m_initial_scale = Main.map.mapView.getMapScale();
     119            m_initial_scale = Main.map.mapView.getDist100Pixel();
    120120        } else {
    121121            throw new IOException( "Could not find the map object." );
     
    190190            g.rotate( m_angle * Math.PI / 180.0 );
    191191            // Scale
    192             double scale = m_scale * m_initial_scale / Main.map.mapView.getMapScale();
     192            double scale = m_scale * m_initial_scale / Main.map.mapView.getDist100Pixel();
    193193            g.scale( scale, scale );
    194194
Note: See TracChangeset for help on using the changeset viewer.