Commit 78ae62da authored by Jeff Garzik's avatar Jeff Garzik Committed by Jeff Garzik

Fix one-off bug in cell-name-to- column conversion code.

2000-05-20  Jeff Garzik  <jgarzik@mandrakesoft.com>

        * sc.c (sc_cellname_to_coords): Fix one-off bug in cell-name-to-
        column conversion code.
parent dbd6999c
2000-05-20 Jeff Garzik <jgarzik@mandrakesoft.com>
* sc.c (sc_cellname_to_coords): Fix one-off bug in cell-name-to-
column conversion code.
2000-05-09 Jody Goldberg <jgoldberg@home.com>
* Release 0.53
......
......@@ -59,7 +59,7 @@ sc_cellname_to_coords (const char *cellname, int *col, int *row)
int ofs = toupper((unsigned char)*cellname) - 'A';
if (ofs < 0 || ofs > 25)
goto err_out;
*col = (mult * 26) + ofs;
*col = ((mult + 1) * 26) + ofs;
cellname++;
}
......
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