Changeset 4400 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2011-09-06T12:11:20+02:00 (13 years ago)
Author:
bastiK
Message:

fix npe when projection from prefs is unkown (e.g. proj4j plugin got deinstalled)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/ProjectionPreference.java

    r4275 r4400  
    199199            coll = null;
    200200            proj = new Mercator();
    201             name = Main.getProjection().getClass().getName();
     201            name = proj.getClass().getName();
     202            PROP_PROJECTION.put(name);
    202203        }
    203204        PROP_SUB_PROJECTION.put(coll);
Note: See TracChangeset for help on using the changeset viewer.