[gnumeric] Sheet: chain ->constructed early.



commit 72fa2ffcbb7ec547305cf43a9a3cf6bcb3510ec1
Author: Morten Welinder <terra gnome org>
Date:   Fri Jan 1 19:27:00 2016 -0500

    Sheet: chain ->constructed early.
    
    Docs aren't terribly clear, but that seems right.

 ChangeLog   |    2 ++
 src/sheet.c |    6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b9b2b30..da939b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2016-01-01  Morten Welinder  <terra gnome org>
 
+       * src/sheet.c (gnm_sheet_constructed): Chain ->constructed early.
+
        * src/expr-name.c (expr_name_add): Improve check for circular name
        defintion.  Fixes #760046.
 
diff --git a/src/sheet.c b/src/sheet.c
index 2707633..56ab6f5 100644
--- a/src/sheet.c
+++ b/src/sheet.c
@@ -673,6 +673,9 @@ gnm_sheet_constructed (GObject *obj)
 {
        Sheet *sheet = SHEET (obj);
 
+       if (parent_class->constructed)
+               parent_class->constructed (obj);
+
        /* Now sheet_type, max_cols, and max_rows have been set.  */
        sheet->being_constructed = FALSE;
 
@@ -723,9 +726,6 @@ gnm_sheet_constructed (GObject *obj)
        }
 
        sheet_scale_changed (sheet, TRUE, TRUE);
-
-       if (parent_class->constructed)
-               parent_class->constructed (obj);
 }
 
 static guint


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