[gnumeric] ms-obj: cleanup.
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnumeric] ms-obj: cleanup.
- Date: Thu, 8 Oct 2009 16:43:05 +0000 (UTC)
commit 738d493f6dc704007791f61c5f48f1516a928608
Author: Morten Welinder <terra gnome org>
Date: Thu Oct 8 10:49:46 2009 -0400
ms-obj: cleanup.
plugins/excel/ms-obj.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/excel/ms-obj.c b/plugins/excel/ms-obj.c
index a204042..a8b329b 100644
--- a/plugins/excel/ms-obj.c
+++ b/plugins/excel/ms-obj.c
@@ -1406,7 +1406,7 @@ ms_objv8_write_checkbox_link (BiffPut *bp)
GSF_LE_SET_GUINT16 (data, GR_CHECKBOX_LINK);
GSF_LE_SET_GUINT16 (data + 2, sizeof (data) - 4);
- GSF_LE_SET_GUINT32 (data + 4, 0); /* ? */
+ GSF_LE_SET_GUINT32 (data + 4, 1); /* ? */
GSF_LE_SET_GUINT32 (data + 8, 0); /* ? */
GSF_LE_SET_GUINT32 (data + 12, 0); /* ? */
ms_biff_put_var_write (bp, data, sizeof data);
@@ -1446,7 +1446,7 @@ ms_objv8_write_radiobutton (BiffPut *bp)
char rb[10];
GSF_LE_SET_GUINT16 (rb, GR_RADIO_BUTTON);
- GSF_LE_SET_GUINT16 (rb + 2, 6); /* docs: must be 6 */
+ GSF_LE_SET_GUINT16 (rb + 2, sizeof (rb) - 4);
GSF_LE_SET_GUINT32 (rb + 4, 0); /* ignore */
GSF_LE_SET_GUINT16 (rb + 8, 0); /* ignore */
ms_biff_put_var_write (bp, rb, sizeof rb);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]