[goffice] Hide 3D series imported from Excel in legend. [#788831]
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Hide 3D series imported from Excel in legend. [#788831]
- Date: Mon, 23 Oct 2017 09:20:45 +0000 (UTC)
commit 70f215a9de0a2b5bdef26bb258b75e5bd7df7855
Author: Jean Brefort <jean brefort normalesup org>
Date: Mon Oct 23 11:19:28 2017 +0200
Hide 3D series imported from Excel in legend. [#788831]
ChangeLog | 5 +++++
NEWS | 2 ++
plugins/plot_surface/xl-surface.c | 7 ++++++-
3 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index deffcf4..0fdf402 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-10-23 Jean Brefort <jean brefort normalesup org>
+
+ * plugins/plot_surface/xl-surface.c (xl_xyz_series_init): don't show these
+ series in the legend. [#788861]
+
2017-10-02 Jean Brefort <jean brefort normalesup org>
* plugins/plot_surface/gog-xyz-surface.c
diff --git a/NEWS b/NEWS
index f332655..ca53f98 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@ goffice 0.10.36:
Jean:
* Fix engineering format. [#785669]
* Fix crash in 3D plots when X or Y values are missing. [#788437]
+ * Don't use invalid styles in legned from contour or surface plots imported
+ from Excel. [#788861]
--------------------------------------------------------------------------
goffice 0.10.35:
diff --git a/plugins/plot_surface/xl-surface.c b/plugins/plot_surface/xl-surface.c
index 5808886..bf7745e 100644
--- a/plugins/plot_surface/xl-surface.c
+++ b/plugins/plot_surface/xl-surface.c
@@ -79,9 +79,14 @@ xl_xyz_series_class_init (GogStyledObjectClass *gso_klass)
obj_klass->update = xl_xyz_series_update;
}
+static void
+xl_xyz_series_init (GogSeries *series)
+{
+ series->has_legend = FALSE;
+}
GSF_DYNAMIC_CLASS (XLXYZSeries, xl_xyz_series,
- xl_xyz_series_class_init, NULL,
+ xl_xyz_series_class_init, xl_xyz_series_init,
GOG_TYPE_SERIES)
/*****************************************************************************/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]