diff options
| author | Even Rouault <even.rouault@mines-paris.org> | 2017-09-12 12:47:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-12 12:47:20 +0200 |
| commit | e99759d85fa5dc75100a814a12c197a07fbe97aa (patch) | |
| tree | 195231d2fd74c3eb5a6a931c4fc4ae6f4ffb60dc /src | |
| parent | 358438903e77d9a7d11d59b4bef85e834418266b (diff) | |
| parent | 5e97ef560034cb0ae2aec9613a5ff7695b1704c5 (diff) | |
| download | PROJ-e99759d85fa5dc75100a814a12c197a07fbe97aa.tar.gz PROJ-e99759d85fa5dc75100a814a12c197a07fbe97aa.zip | |
Merge pull request #567 from kbevers/issue-566
Fix for #566.
Diffstat (limited to 'src')
| -rw-r--r-- | src/PJ_unitconvert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PJ_unitconvert.c b/src/PJ_unitconvert.c index 1e4cb839..06723399 100644 --- a/src/PJ_unitconvert.c +++ b/src/PJ_unitconvert.c @@ -311,9 +311,9 @@ static PJ_OBS reverse_obs(PJ_OBS obs, PJ *P) { /* delegate unit conversion of physical dimensions to the 3D function */ out.coo.lpz = reverse_3d(obs.coo.xyz, P); - if (Q->t_in_id >= 0) - out.coo.xyzt.t = time_units[Q->t_out_id].t_in( obs.coo.xyzt.t ); if (Q->t_out_id >= 0) + out.coo.xyzt.t = time_units[Q->t_out_id].t_in( obs.coo.xyzt.t ); + if (Q->t_in_id >= 0) out.coo.xyzt.t = time_units[Q->t_in_id].t_out( out.coo.xyzt.t ); return out; |
