[gnumeric] Write only non-negative gradient angles.
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Write only non-negative gradient angles.
- Date: Fri, 20 Feb 2015 03:19:16 +0000 (UTC)
commit ff2cfcf6927c0dec82bd37941d46b5e6fc0d97a8
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date: Thu Feb 19 20:16:44 2015 -0700
Write only non-negative gradient angles.
2015-02-19 Andreas J. Guelzow <aguelzow pyrshep ca>
* openoffice-write.c (odf_write_gradient_info): use positive angles
plugins/openoffice/ChangeLog | 4 ++++
plugins/openoffice/openoffice-write.c | 12 ++++++------
2 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 1e8174d..fee3a85 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-19 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+ * openoffice-write.c (odf_write_gradient_info): use positive angles
+
2015-02-17 Morten Welinder <terra gnome org>
* openoffice-write.c (odf_write_regression_curve): Plug leak.
diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index 123b449..e705997 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -5749,17 +5749,17 @@ odf_write_gradient_info (GOStyle const *style, char const *name, GnmOOExport *st
{GO_GRADIENT_S_TO_N, "linear", 0},
{GO_GRADIENT_N_TO_S_MIRRORED, "axial", 180},
{GO_GRADIENT_S_TO_N_MIRRORED, "axial", 0},
- {GO_GRADIENT_W_TO_E, "linear", -90},
+ {GO_GRADIENT_W_TO_E, "linear", 270},
{GO_GRADIENT_E_TO_W, "linear", 90},
- {GO_GRADIENT_W_TO_E_MIRRORED, "axial", -90},
+ {GO_GRADIENT_W_TO_E_MIRRORED, "axial", 270},
{GO_GRADIENT_E_TO_W_MIRRORED, "axial", 90},
- {GO_GRADIENT_NW_TO_SE, "linear", -135},
+ {GO_GRADIENT_NW_TO_SE, "linear", 225},
{GO_GRADIENT_SE_TO_NW, "linear", 45},
- {GO_GRADIENT_NW_TO_SE_MIRRORED, "axial", -135 },
+ {GO_GRADIENT_NW_TO_SE_MIRRORED, "axial", 225},
{GO_GRADIENT_SE_TO_NW_MIRRORED, "axial", 45},
{GO_GRADIENT_NE_TO_SW, "linear", 135},
- {GO_GRADIENT_SW_TO_NE, "linear", -45},
- {GO_GRADIENT_SW_TO_NE_MIRRORED, "axial", -45},
+ {GO_GRADIENT_SW_TO_NE, "linear", 315},
+ {GO_GRADIENT_SW_TO_NE_MIRRORED, "axial", 315},
{GO_GRADIENT_NE_TO_SW_MIRRORED, "axial", 135},
};
int i;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]