Ticket #11353: fix_offset_setting.patch

File fix_offset_setting.patch, 720 bytes (added by wiktorn, 4 years ago)
  • src/org/openstreetmap/josm/gui/layer/TMSLayer.java

    diff --git src/org/openstreetmap/josm/gui/layer/TMSLayer.java src/org/openstreetmap/josm/gui/layer/TMSLayer.java
    index a496320..2cbe051 100644
    public class TMSLayer extends ImageryLayer implements ImageObserver, TileLoaderL 
    394394    }
    395395
    396396    /**
     397     * Marks layer as needing redraw on offset change
     398     */
     399    @Override
     400    public void setOffset(double dx, double dy) {
     401        super.setOffset(dx, dy);
     402        needRedraw = true;
     403    }
     404    /**
    397405     * Returns average number of screen pixels per tile pixel for current mapview
    398406     */
    399407    private double getScaleFactor(int zoom) {