[goffice] Don't crash after deleting a named smoothed curve. [#691796]



commit 4326e8b9eff08e07161d286607ce93dcf0709ddf
Author: Jean Brefort <jean brefort normalesup org>
Date:   Wed Jan 16 14:45:12 2013 +0100

    Don't crash after deleting a named smoothed curve. [#691796]

 ChangeLog                          |    6 ++++++
 NEWS                               |    1 +
 goffice/graph/gog-smoothed-curve.c |    1 +
 3 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2c4a6df..2c4735f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-01-16  Jean Brefort  <jean brefort normalesup org>
+
+	* goffice/graph/gog-smoothed-curve.c
+	(gog_smoothed_curve_parent_changed): call parent class implementation. Fix
+	crash after deleting a named smoothed curve. [#691796]
+
 2013-01-15  Morten Welinder  <terra gnome org>
 
 	* goffice/utils/go-spectre.c (create_file): Helper to make sure
diff --git a/NEWS b/NEWS
index 6729f42..445beed 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@ goffice 0.10.1:
 
 Jean:
 	* Don't add an extra separator at start of data labels. [#691704]
+	* Don't crash after deleting a named smoothed curve. [#691796]
 
 Morten:
 	* Cleanup linear algebra.  [#691630]
diff --git a/goffice/graph/gog-smoothed-curve.c b/goffice/graph/gog-smoothed-curve.c
index e93b5b9..324e2ee 100644
--- a/goffice/graph/gog-smoothed-curve.c
+++ b/goffice/graph/gog-smoothed-curve.c
@@ -98,6 +98,7 @@ gog_smoothed_curve_parent_changed (GogObject *obj, G_GNUC_UNUSED gboolean was_se
 		GogSmoothedCurveClass *klass = (GogSmoothedCurveClass *) G_OBJECT_GET_CLASS (obj);
 		sc->name = g_new0 (GogDatasetElement, klass->max_dim + 2);
 	}
+	GOG_OBJECT_CLASS (smoothed_curve_parent_klass)->parent_changed (obj, was_set);
 }
 
 static void



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