diff options
| author | Thomas Knudsen <busstoptaktik@users.noreply.github.com> | 2018-01-06 13:17:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-06 13:17:41 +0100 |
| commit | 81885b034d06191d7e1bc7c96a88dd4ceb37fed4 (patch) | |
| tree | c6f68f76cee4351fa1dbb98f556c8e40ad6e6c5b | |
| parent | 51a2ab2d6706d39c81a1555608ba8954068e2543 (diff) | |
| download | PROJ-81885b034d06191d7e1bc7c96a88dd4ceb37fed4.tar.gz PROJ-81885b034d06191d7e1bc7c96a88dd4ceb37fed4.zip | |
Repair ratio numbers for units in pj_init_ctx
| -rw-r--r-- | src/pj_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pj_init.c b/src/pj_init.c index 2cf53e41..087a3096 100644 --- a/src/pj_init.c +++ b/src/pj_init.c @@ -691,9 +691,9 @@ pj_init_ctx(projCtx ctx, int argc, char **argv) { int ratio = 0; /* ratio number? */ - if (*s == '/') { + if (strlen (s) > 1 && s[0] == '1' && s[1]=='/') { ratio = 1; - s++; + s += 2; } factor = pj_strtod(s, &s); |
