Ticket #13038: patch-fix-13038.patch

File patch-fix-13038.patch, 744 bytes (added by michael2402, 10 years ago)
  • src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    diff --git a/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java b/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
    index cb7f90b..f54d66f 100644
    a b implements ImageObserver, TileLoaderListener, ZoomChangeListener {  
    633633        // FIXME: why do we need this? Without this, if you add a WMS layer and do not move the mouse, sometimes, tiles do not
    634634        // start loading.
    635635        // FIXME: Check if this is still required.
    636         Main.map.repaint(500);
     636        event.getMapView().repaint(500);
    637637
    638638        return super.attachToMapView(event);
    639639    }