[goffice] Test plot series validity after a data change. [#468]



commit dfbef95029e0ef5d62d1f5c07519b30d829c5133
Author: Jean Brefort <jean brefort normalesup org>
Date:   Thu Apr 9 14:46:21 2020 +0200

    Test plot series validity after a data change. [#468]

 ChangeLog                  | 5 +++++
 NEWS                       | 1 +
 goffice/graph/gog-series.c | 1 +
 3 files changed, 7 insertions(+)
---
diff --git a/ChangeLog b/ChangeLog
index caae4fe2..0381c2ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-04-09  Jean Brefort  <jean brefort normalesup org>
+
+       * goffice/graph/gog-series.c (gog_series_dataset_dim_changed): check
+       validity when the data change. Fix #468.
+
 2020-04-09  Jean Brefort  <jean brefort normalesup org>
 
        reviewed by: <delete if not using a buddy>
diff --git a/NEWS b/NEWS
index e943517a..a05b40c7 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ Jean:
        * Fix a drawing error in contour plots. [#458]
        * Ensure that all required dims have valid data in a valid series. [#466]
        * Fix legend order in bar plots.
+       * Test plot series validity after a data change. [#468] 
 
 Morten:
        * Fix library namespace issue.
diff --git a/goffice/graph/gog-series.c b/goffice/graph/gog-series.c
index 93cab8c5..959563b3 100644
--- a/goffice/graph/gog-series.c
+++ b/goffice/graph/gog-series.c
@@ -963,6 +963,7 @@ gog_series_dataset_dim_changed (GogDataset *set, int dim_i)
                        ? go_data_get_scalar_string (name_src) : NULL;
                gog_object_set_name (GOG_OBJECT (set), name, NULL);
        }
+       gog_series_check_validity (series);
 }
 
 static void


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