[gnumeric] Ignore the cross value from xls when axis crossing is auto.
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Ignore the cross value from xls when axis crossing is auto.
- Date: Wed, 16 Apr 2014 13:35:49 +0000 (UTC)
commit 32b50b145a407685929e1617fda7a4e90290b73e
Author: Jean Brefort <jean brefort normalesup org>
Date: Wed Apr 16 15:35:15 2014 +0200
Ignore the cross value from xls when axis crossing is auto.
plugins/excel/ChangeLog | 4 ++++
plugins/excel/ms-chart.c | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 3741f5f..6c66884 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,7 @@
+2014-04-16 Jean Brefort <jean brefort normalesup org>
+
+ * ms-chart.c (valuerange): ignore the cross value when auto crossing.
+
2014-04-14 Morten Welinder <terra gnome org>
* xlsx-read.c (xlsx_ext_begin): Don't complain over "ext".
diff --git a/plugins/excel/ms-chart.c b/plugins/excel/ms-chart.c
index 7a8a40e..f838fa5 100644
--- a/plugins/excel/ms-chart.c
+++ b/plugins/excel/ms-chart.c
@@ -2415,7 +2415,7 @@ BC_R(valuerange)(XLChartHandler const *handle,
} else {
if (gog_axis_get_atype (GOG_AXIS (s->axis)) == GOG_AXIS_X)
s->axis_cross_value = cross;
- else if (gog_axis_get_atype (GOG_AXIS (s->axis)) == GOG_AXIS_Y && s->xaxis) {
+ else if (gog_axis_get_atype (GOG_AXIS (s->axis)) == GOG_AXIS_Y && s->xaxis && !(flags &
0x10)) {
GnmValue *value = value_new_float (cross);
GnmExprTop const *texpr = gnm_expr_top_new_constant (value);
g_object_set (s->xaxis,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]