Commit d6d82a4c authored by Morten Welinder's avatar Morten Welinder

Fix second branch...

parent e8ee62e9
......@@ -762,9 +762,9 @@ col_parse (char const *str, int *res, unsigned char *relative)
for (; TRUE ; ptr++)
if (('a' <= *ptr && *ptr <= 'z'))
col = col * 26 + (*ptr - 'a');
col = 26 * (col + 1) + (*ptr - 'a');
else if (('A' <= *ptr && *ptr <= 'Z'))
col = 26*(col + 1) + (*ptr - 'A');
col = 26 * (col + 1) + (*ptr - 'A');
else if (ptr != str && col < SHEET_MAX_COLS) {
*res = col;
return ptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment