[gnumeric] xls/biff7: fix export of rotation.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] xls/biff7: fix export of rotation.
- Date: Thu, 20 Feb 2014 03:38:55 +0000 (UTC)
commit 05be292cc5a52bc94892e0d10e9ee32be6174930
Author: Morten Welinder <terra gnome org>
Date: Wed Feb 19 22:38:34 2014 -0500
xls/biff7: fix export of rotation.
NEWS | 1 +
plugins/excel/ChangeLog | 3 +++
plugins/excel/ms-excel-write.c | 2 +-
3 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index 533dd9e..edb3c2e 100644
--- a/NEWS
+++ b/NEWS
@@ -16,6 +16,7 @@ Morten:
* Improve ssdiff's report of differences.
* Improve LOG2's accuracy.
* Fix BIFF7 export of page headers and footers.
+ * Fix BIFF7 export of font rotation.
* Fix xlsx export of underlines.
--------------------------------------------------------------------------
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index f966593..d75d5f6 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,5 +1,8 @@
2014-02-19 Morten Welinder <terra gnome org>
+ * ms-excel-write.c (rotation_to_excel_v7): Fix rotation at 270
+ degrees.
+
* xlsx-write.c (xlsx_write_fonts): Handle underline.
* ms-excel-write.c (excel_write_HEADER_FOOTER): Use one-byte
diff --git a/plugins/excel/ms-excel-write.c b/plugins/excel/ms-excel-write.c
index e5a3efd..01169cb 100644
--- a/plugins/excel/ms-excel-write.c
+++ b/plugins/excel/ms-excel-write.c
@@ -2714,7 +2714,7 @@ rotation_to_excel_v7 (int rotation)
if (rotation <= 225)
return 0;
if (rotation <= 315)
- return 2;
+ return 3;
return 0;
}
static guint
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]