Commit 70ef85f8 authored by Miguel de Icaza's avatar Miguel de Icaza Committed by Arturo Espinosa
Browse files

Fixed another of column name decoding. I wonder when I will learn.

1998-10-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/utils.c (cellref_name): Fixed another of column name
	decoding.  I wonder when I will learn.
parent 8633bfcd
1998-10-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/utils.c (cellref_name): Fixed another of column name
decoding. I wonder when I will learn.
1998-10-07 Jakub Jelinek <jj@ultra.penguin.cz>
* src/sheet.c (sheet_cursor_set): Add base_col and
......
1998-10-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/utils.c (cellref_name): Fixed another of column name
decoding. I wonder when I will learn.
1998-10-07 Jakub Jelinek <jj@ultra.penguin.cz>
* src/sheet.c (sheet_cursor_set): Add base_col and
......
1998-10-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/utils.c (cellref_name): Fixed another of column name
decoding. I wonder when I will learn.
1998-10-07 Jakub Jelinek <jj@ultra.penguin.cz>
* src/sheet.c (sheet_cursor_set): Add base_col and
......
1998-10-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/utils.c (cellref_name): Fixed another of column name
decoding. I wonder when I will learn.
1998-10-07 Jakub Jelinek <jj@ultra.penguin.cz>
* src/sheet.c (sheet_cursor_set): Add base_col and
......
......@@ -100,10 +100,10 @@ cellref_name (CellRef *cell_ref, int eval_col, int eval_row)
if (col < 'Z'-'A'){
*p++ = col + 'A';
} else {
int a = col / ('Z'-'A');
int b = col % ('Z'-'A');
int a = col / ('Z'-'A'+1);
int b = col % ('Z'-'A'+1);
*p++ = a + 'A';
*p++ = a + 'A' - 1;
*p++ = b + 'A';
}
if (cell_ref->row_relative)
......
......@@ -100,10 +100,10 @@ cellref_name (CellRef *cell_ref, int eval_col, int eval_row)
if (col < 'Z'-'A'){
*p++ = col + 'A';
} else {
int a = col / ('Z'-'A');
int b = col % ('Z'-'A');
int a = col / ('Z'-'A'+1);
int b = col % ('Z'-'A'+1);
*p++ = a + 'A';
*p++ = a + 'A' - 1;
*p++ = b + 'A';
}
if (cell_ref->row_relative)
......
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