[gnumeric] Warning fix.



commit 9254cb14696ba5f8f95d48341570c07c5fbdca2c
Author: Morten Welinder <terra gnome org>
Date:   Fri Feb 19 19:14:09 2021 -0500

    Warning fix.

 src/mstyle.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/mstyle.c b/src/mstyle.c
index ba9ff8750..c8843f848 100644
--- a/src/mstyle.c
+++ b/src/mstyle.c
@@ -991,9 +991,11 @@ gnm_style_linked_sheet_changed (GnmStyle *style)
        if (elem_is_set (style, MSTYLE_CONDITIONS) &&
            style->conditions &&
            gnm_style_conditions_get_sheet (style->conditions) != sheet) {
+               GnmStyleConditions *new_c, *new_sc;
+
                sheet_conditions_share_conditions_remove (style->conditions);
-               GnmStyleConditions *new_c = gnm_style_conditions_dup_to (style->conditions, sheet);
-               GnmStyleConditions *new_sc = sheet_conditions_share_conditions_add (new_c);
+               new_c = gnm_style_conditions_dup_to (style->conditions, sheet);
+               new_sc = sheet_conditions_share_conditions_add (new_c);
                if (new_sc) {
                        g_object_unref (new_c);
                        new_c = new_sc;


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