Commit 33f5a8c3 authored by Arturo Espinosa's avatar Arturo Espinosa

Oops bug fix

parent 4e8c3f72
...@@ -614,13 +614,14 @@ apply_font_format (Style *style, Sheet *sheet, CellList *cells) ...@@ -614,13 +614,14 @@ apply_font_format (Style *style, Sheet *sheet, CellList *cells)
/* Now apply it to every row in the selection */ /* Now apply it to every row in the selection */
for (l = sheet->selections; l; l = l->next){ for (l = sheet->selections; l; l = l->next){
SheetSelection *ss = l->data; SheetSelection *ss = l->data;
GList *rl;
/* Special case, the whole spreadsheet */ /* Special case, the whole spreadsheet */
if (ss->start_row == 0 && ss->end_row == SHEET_MAX_ROWS-1) if (ss->start_row == 0 && ss->end_row == SHEET_MAX_ROWS-1)
sheet_row_set_internal_height (sheet, &sheet->default_row_style, height); sheet_row_set_internal_height (sheet, &sheet->default_row_style, height);
for (l = sheet->rows_info; l; l = l->next){ for (rl = sheet->rows_info; rl; rl = rl->next){
ColRowInfo *ri = l->data; ColRowInfo *ri = rl->data;
if (ri->pos < ss->start_row) if (ri->pos < ss->start_row)
break; break;
......
...@@ -614,13 +614,14 @@ apply_font_format (Style *style, Sheet *sheet, CellList *cells) ...@@ -614,13 +614,14 @@ apply_font_format (Style *style, Sheet *sheet, CellList *cells)
/* Now apply it to every row in the selection */ /* Now apply it to every row in the selection */
for (l = sheet->selections; l; l = l->next){ for (l = sheet->selections; l; l = l->next){
SheetSelection *ss = l->data; SheetSelection *ss = l->data;
GList *rl;
/* Special case, the whole spreadsheet */ /* Special case, the whole spreadsheet */
if (ss->start_row == 0 && ss->end_row == SHEET_MAX_ROWS-1) if (ss->start_row == 0 && ss->end_row == SHEET_MAX_ROWS-1)
sheet_row_set_internal_height (sheet, &sheet->default_row_style, height); sheet_row_set_internal_height (sheet, &sheet->default_row_style, height);
for (l = sheet->rows_info; l; l = l->next){ for (rl = sheet->rows_info; rl; rl = rl->next){
ColRowInfo *ri = l->data; ColRowInfo *ri = rl->data;
if (ri->pos < ss->start_row) if (ri->pos < ss->start_row)
break; break;
......
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