Commit c13d0dde authored by Jody Goldberg's avatar Jody Goldberg
Browse files

Fix typo that was breaking booleans.

parent f2ac7011
1999-08-16 Jody Goldberg <jgoldberg@home.com>
* ms-formula-write.c (write_node) : correct typo.
We can now write & read samples/logfuns.xls without
loosing formulas or values.
1999-08-15 Jody Goldberg <jgoldberg@home.com>
* ms-excel-write.c (write_value) : Add support for VALUE_BOOLEAN,
......
......@@ -414,7 +414,7 @@ write_node (PolishData *pd, ExprTree *tree)
case VALUE_BOOLEAN:
{
guint8 data[2];
MS_OLE_SET_GUINT8 (data, FORMULA_PTG_NUM);
MS_OLE_SET_GUINT8 (data, FORMULA_PTG_BOOL);
MS_OLE_SET_GUINT8 (data+1, v->v.v_bool ? 1 : 0);
ms_biff_put_var_write (pd->bp, data, 2);
break;
......@@ -485,13 +485,15 @@ write_node (PolishData *pd, ExprTree *tree)
write_ref (pd, &tree->u.ref);
break;
case OPER_ARRAY:
case OPER_NAME:
default:
{
gchar *err = g_strdup_printf ("Unknown Operator %d", tree->oper);
write_string (pd, err);
g_free (err);
#if FORMULA_DEBUG > 0
printf ("Unhandled node type %d\n", tree->oper);
#if FORMULA_DEBUG > 0
#endif
break;
}
......
Supports Markdown
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