Commit
Thanks to Bas Couwenberg <sebastic@debian.org> for spotting this horrible bug!
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -397,7 +397,9 @@ static int height_unit (PJ *P, PJ_DIRECTION dir, long n, int dist, double *z) { | |
fac = P->vfr_meter; | ||
|
||
/* Nothing to do? */ | ||
if (P->vto_meter==0.0) | ||
if (fac==1.0) | ||
return 0; | ||
if (0==z) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
busstoptaktik
Author
Member
|
||
return 0; | ||
|
||
for (i = 0; i < n; i++) | ||
|
Why
0==z
instead of testing forNULL
as in my change?