Imported Upstream version 1.72.0
[platform/upstream/boost.git] / boost / geometry / srs / projections / impl / pj_inv.hpp
index 91cf4c5..aa65af9 100644 (file)
@@ -3,8 +3,8 @@
 
 // Copyright (c) 2008-2012 Barend Gehrels, Amsterdam, the Netherlands.
 
-// This file was modified by Oracle on 2017.
-// Modifications copyright (c) 2017, Oracle and/or its affiliates.
+// This file was modified by Oracle on 2017, 2019.
+// Modifications copyright (c) 2017-2019, Oracle and/or its affiliates.
 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
 
 // Use, modification and distribution is subject to the Boost Software License,
@@ -65,7 +65,9 @@ inline void pj_inv(PRJ const& prj, PAR const& par, XY const& xy, LL& ll)
     calc_t xy_x = (geometry::get<0>(xy) * par.to_meter - par.x0) * par.ra;
     calc_t xy_y = (geometry::get<1>(xy) * par.to_meter - par.y0) * par.ra;
     calc_t lon = 0, lat = 0;
-    prj.inv(xy_x, xy_y, lon, lat); /* inverse project */
+
+    prj.inv(par, xy_x, xy_y, lon, lat); /* inverse project */
+    
     lon += par.lam0; /* reduce from del lp.lam */
     if (!par.over)
         lon = adjlon(lon); /* adjust longitude to CM */