Index: ChangeLog =================================================================== RCS file: /cvs/gnome/gnumeric/ChangeLog,v retrieving revision 1.719 diff -u -r1.719 ChangeLog --- ChangeLog 2000/11/16 15:52:49 1.719 +++ ChangeLog 2000/11/16 16:11:26 @@ -1,5 +1,10 @@ 2000-11-16 Zbigniew Chyla + * src/sheet-autofill.c: Added support for boolean values (just copy + them). + +2000-11-16 Zbigniew Chyla + * src/selection.c, src/dialogs/dialog-cell-sort.c: Marked strings for translation. Index: src/sheet-autofill.c =================================================================== RCS file: /cvs/gnome/gnumeric/src/sheet-autofill.c,v retrieving revision 1.53 diff -u -r1.53 sheet-autofill.c --- src/sheet-autofill.c 2000/11/15 18:10:39 1.53 +++ src/sheet-autofill.c 2000/11/16 16:11:27 @@ -77,7 +77,12 @@ /* * FILL_FORMULA: This is a formula */ - FILL_FORMULA + FILL_FORMULA, + + /* + * FILL_BOOLEAN_CONSTANT: Just duplicate this constant + */ + FILL_BOOLEAN_CONSTANT } FillType; typedef struct { @@ -104,6 +109,7 @@ String *str; int pos, num; } numstr; + gboolean bool; } v; gboolean delta_is_float; @@ -329,7 +335,16 @@ fi->v.numstr.num = num; fi->v.numstr.pos = pos; } + + return fi; } + + if (value_type == VALUE_BOOLEAN){ + fi->type = FILL_BOOLEAN_CONSTANT; + fi->v.bool = value->v_bool.val; + + return fi; + } return fi; } @@ -425,6 +440,7 @@ case FILL_EMPTY: case FILL_STRING_CONSTANT: + case FILL_BOOLEAN_CONSTANT: case FILL_FORMULA: case FILL_INVALID: return; @@ -654,6 +670,10 @@ cell_set_expr (cell, (func == NULL) ? fi->v.formula : func, NULL); return; } + + case FILL_BOOLEAN_CONSTANT: + cell_set_value (cell, value_new_bool (fi->v.bool), NULL); + return; } }