[goffice] fixed multiple series update in probability plots.
- From: Jean Bréfort <jbrefort src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [goffice] fixed multiple series update in probability plots.
- Date: Mon, 18 Jan 2010 15:32:55 +0000 (UTC)
commit 2761758078d31039de449688d275ca4810a86c00
Author: Jean Brefort <jean brefort normalesup org>
Date: Mon Jan 18 16:34:00 2010 +0100
fixed multiple series update in probability plots.
ChangeLog | 5 +++++
plugins/plot_distrib/gog-probability-plot.c | 5 +++--
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 142692c..c2b557c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-18 Jean Brefort <jean brefort normalesup org>
+
+ * plugins/plot_distrib/gog-probability-plot.c
+ (gog_probability_plot_set_property): apply type change to all series.
+
2010-01-15 Jean Brefort <jean brefort normalesup org>
* goffice/graph/gog-guru.c (graph_guru_type_selector_new): make keyboard
diff --git a/plugins/plot_distrib/gog-probability-plot.c b/plugins/plot_distrib/gog-probability-plot.c
index 7d63c6a..39a4308 100644
--- a/plugins/plot_distrib/gog-probability-plot.c
+++ b/plugins/plot_distrib/gog-probability-plot.c
@@ -150,6 +150,7 @@ gog_probability_plot_set_property (GObject *obj, guint param_id,
switch (param_id) {
case PROBABILITY_PLOT_PROP_DISTRIBUTION: {
GODistribution *dist = GO_DISTRIBUTION (g_value_get_object (value));
+ GSList *series;
if (dist) {
GParamSpec **props;
int i, j, n;
@@ -171,8 +172,8 @@ gog_probability_plot_set_property (GObject *obj, guint param_id,
i++;
}
g_free (props);
- if (plot->base.series)
- gog_object_request_update (GOG_OBJECT (plot->base.series->data));
+ for (series = plot->base.series; series; series = series->next)
+ gog_object_request_update (GOG_OBJECT (series->data));
gog_object_emit_changed (GOG_OBJECT (obj), FALSE);
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]