[goffice] Added a comment about #663717 patch



commit 12ba335212d89aa689aa0ef8a16c5732ecc69ab3
Author: Jean Brefort <jean brefort normalesup org>
Date:   Tue Nov 15 20:15:02 2011 +0100

    Added a comment about #663717 patch

 plugins/plot_barcol/gog-1.5d.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/plot_barcol/gog-1.5d.c b/plugins/plot_barcol/gog-1.5d.c
index c7eb993..93fd016 100644
--- a/plugins/plot_barcol/gog-1.5d.c
+++ b/plugins/plot_barcol/gog-1.5d.c
@@ -286,6 +286,11 @@ gog_plot1_5d_axis_get_bounds (GogPlot *plot, GogAxisType axis,
 		if (model->date_conv)
 			bounds->date_conv = model->date_conv;
 
+		/* We must ensure that the displayed range includes 0 so that
+		 * the bar length / column height / ... actually represents the
+		 * value. See https://bugzilla.gnome.org/show_bug.cgi?id=663717.
+		 * The check for num_dim is there because the requirement is less
+		 * obvious for dropbars. */
 		if (plot->desc.series.num_dim == 4 && bounds->val.minima * bounds->val.maxima > 0) {
 			if (bounds->val.minima > 0)
 				bounds->val.minima = 0;



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