[goffice] Draw columns/bars plots before the axes so that axis labels are always visible



commit 4d9be5e965bd866f41e09631219298a8f82f0682
Author: Jean Brefort <jean brefort normalesup org>
Date:   Mon Sep 26 21:33:17 2011 +0200

    Draw columns/bars plots before the axes so that axis labels are always visible

 ChangeLog                        |    6 ++++++
 plugins/plot_barcol/gog-barcol.c |    3 ++-
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b57887f..59f84ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-09-26  Jean Brefort  <jean brefort normalesup org>
+
+	* plugins/plot_barcol/gog-barcol.c (gog_barcol_plot_set_property),
+	(gog_barcol_plot_init): draw columns/bars plots before the axes so that
+	axis labels are always visible.
+
 2011-09-25  Jean Brefort  <jean brefort normalesup org>
 
 	* goffice/canvas/goc-item.c (goc_item_reordered), (goc_item_raise),
diff --git a/plugins/plot_barcol/gog-barcol.c b/plugins/plot_barcol/gog-barcol.c
index 8dbd0e0..bb0183e 100644
--- a/plugins/plot_barcol/gog-barcol.c
+++ b/plugins/plot_barcol/gog-barcol.c
@@ -112,7 +112,7 @@ gog_barcol_plot_set_property (GObject *obj, guint param_id,
 	case BARCOL_PROP_FILL_BEFORE_GRID:
 		GOG_PLOT (obj)->rendering_order = (g_value_get_boolean (value))?
 						GOG_PLOT_RENDERING_BEFORE_GRID:
-						GOG_PLOT_RENDERING_LAST;
+						GOG_PLOT_RENDERING_BEFORE_AXIS;
 		break;
 
 	default: G_OBJECT_WARN_INVALID_PROPERTY_ID (obj, param_id, pspec);
@@ -300,6 +300,7 @@ gog_barcol_plot_init (GogBarColPlot *model)
 {
 	model->gap_percentage = 150;
 	GOG_PLOT1_5D (model)->support_series_lines = TRUE;
+	GOG_PLOT (model)->rendering_order = GOG_PLOT_RENDERING_BEFORE_AXIS;
 }
 
 GSF_DYNAMIC_CLASS (GogBarColPlot, gog_barcol_plot,



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