Changeset 13421 in josm


Ignore:
Timestamp:
2018-02-13T22:36:06+01:00 (3 months ago)
Author:
bastiK
Message:

see #15880 - throw exception when there is an error loading the projection definition from config file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/Projections.java

    r13173 r13421  
    314314        ProjectionDefinition pd = inits.get(code);
    315315        if (pd != null) {
    316             proj = new CustomProjection(pd.name, code, pd.definition);
     316            CustomProjection cproj = new CustomProjection(pd.name, code, null);
     317            try {
     318                cproj.update(pd.definition);
     319            } catch (ProjectionConfigurationException ex) {
     320                throw new RuntimeException(ex);
     321            }
     322            proj = cproj;
    317323        }
    318324        if (proj == null) {
Note: See TracChangeset for help on using the changeset viewer.