Ignore:
Timestamp:
2017-08-24T00:15:51+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate Main.map and Main.isDisplayingMapView(). Replacements: gui.MainApplication.getMap() / gui.MainApplication.isDisplayingMapView()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r12620 r12630  
    3636import org.openstreetmap.josm.data.osm.Tagged;
    3737import org.openstreetmap.josm.data.osm.Way;
     38import org.openstreetmap.josm.gui.MainApplication;
    3839import org.openstreetmap.josm.gui.mappaint.Environment;
    3940import org.openstreetmap.josm.gui.mappaint.mapcss.Selector;
     
    15511552        @Override
    15521553        protected Collection<Bounds> getBounds(OsmPrimitive primitive) {
    1553             if (!Main.isDisplayingMapView()) {
     1554            if (!MainApplication.isDisplayingMapView()) {
    15541555                return null;
    15551556            }
    1556             return Collections.singleton(Main.map.mapView.getRealBounds());
     1557            return Collections.singleton(MainApplication.getMap().mapView.getRealBounds());
    15571558        }
    15581559
Note: See TracChangeset for help on using the changeset viewer.