[gnumeric] Fix workbook references on component edition.



commit c29ac9bb81e08bcc9cde721e27b43cbd4b78a81c
Author: Jean Brefort <jean brefort normalesup org>
Date:   Tue Jan 28 10:16:53 2014 +0100

    Fix workbook references on component edition.

 ChangeLog                    |    5 +++++
 src/sheet-object-component.c |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6364f3c..3727b0f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-01-28  Jean Brefort  <jean brefort normalesup org>
+
+       * src/sheet-object-component.c (gnm_soc_user_config): release the new
+       component reference to the workbook.
+
 2014-01-27  Morten Welinder  <terra gnome org>
 
        * src/func.c (function_dump_defs): Undo wiki change.
diff --git a/src/sheet-object-component.c b/src/sheet-object-component.c
index f6629ba..dada9c5 100644
--- a/src/sheet-object-component.c
+++ b/src/sheet-object-component.c
@@ -376,6 +376,7 @@ gnm_soc_user_config (SheetObject *so, SheetControl *sc)
        go_component_set_command_context (new_comp, GO_CMD_CONTEXT (scg_wbcg (SHEET_CONTROL_GUI (sc))));
        w = (GtkWidget *) go_component_edit (new_comp);
        go_component_set_command_context (soc->component, NULL);
+       go_component_set_command_context (new_comp, NULL);
        if (w) {
                gnm_soc_user_config_t *data = g_new0 (gnm_soc_user_config_t, 1);
                data->so = so;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]