Changeset 11482 in josm


Ignore:
Timestamp:
2017-01-19T23:14:59+01:00 (7 months ago)
Author:
Don-vip
Message:

see #13124 - fix the problem with the different projections (patch by kidelo)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java

    r11470 r11482  
    738738
    739739        // cache scale of view
    740         final double zoomScale = mv.getScale();
     740        final double zoomScale = mv.getDist100Pixel() / 50.0f;
    741741
    742742        // 3rd. determine current paint parameters -----------------------------
     
    10891089        final Rectangle screenBounds = new Rectangle(mv.getWidth(), mv.getHeight());
    10901090        final MapViewState mapViewState = mv.getState();
    1091         final double zoomScale = mapViewState.getScale();
     1091        final double zoomScale = mv.getDist100Pixel() / 50.0f;
    10921092
    10931093        // adjust global settings ( zero = default line width )
Note: See TracChangeset for help on using the changeset viewer.