[gnumeric] xlsx: allow negative axis value scaling too.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] xlsx: allow negative axis value scaling too.
- Date: Mon, 4 May 2015 14:53:44 +0000 (UTC)
commit ec2ae796e273d36e34e771b1993aa5efee0b25ea
Author: Morten Welinder <terra gnome org>
Date: Mon May 4 10:52:57 2015 -0400
xlsx: allow negative axis value scaling too.
The spec allows it; it might be useful.
plugins/excel/ChangeLog | 8 +++++++-
plugins/excel/xlsx-read-drawing.c | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index d8555d1..862efc9 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,6 +1,12 @@
+2015-05-04 Morten Welinder <terra gnome org>
+
+ * xlsx-read-drawing.c (xlsx_axis_custom_unit): Allow negative
+ units too.
+
2015-05-04 Jean Brefort <jean brefort normalesup org>
- * xlsx-read-drawing.c (xlsx_axis_custom_unit): read custom scaling factor.
+ * xlsx-read-drawing.c (xlsx_axis_custom_unit): read custom scaling
+ factor.
* xlsx-write-drawing.c (xlsx_write_axis): write it back. [#748295]
2015-04-28 Morten Welinder <terra gnome org>
diff --git a/plugins/excel/xlsx-read-drawing.c b/plugins/excel/xlsx-read-drawing.c
index f82478f..c078019 100644
--- a/plugins/excel/xlsx-read-drawing.c
+++ b/plugins/excel/xlsx-read-drawing.c
@@ -1081,7 +1081,7 @@ xlsx_axis_custom_unit (GsfXMLIn *xin, xmlChar const **attrs)
{
XLSXReadState *state = (XLSXReadState *)xin->user_state;
double f;
- if (state->axis.obj && attr_float (xin, attrs, "val", &f) && f > 0.)
+ if (state->axis.obj && attr_float (xin, attrs, "val", &f) && f != 0)
g_object_set (state->axis.obj, "display-factor", f, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]