gnumeric r17001 - in trunk: . plugins/excel
- From: mortenw svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r17001 - in trunk: . plugins/excel
- Date: Thu, 11 Dec 2008 21:01:08 +0000 (UTC)
Author: mortenw
Date: Thu Dec 11 21:01:08 2008
New Revision: 17001
URL: http://svn.gnome.org/viewvc/gnumeric?rev=17001&view=rev
Log:
2008-12-11 Morten Welinder <terra gnome org>
* ms-excel-write.c (map_pattern_to_xl): Throw in some translations
of Gnumeric-specific patterns. Fixes #564078.
Modified:
trunk/NEWS
trunk/plugins/excel/ChangeLog
trunk/plugins/excel/ms-excel-write.c
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Thu Dec 11 21:01:08 2008
@@ -50,6 +50,7 @@
* Plug leak in TRIMMEAN.
* Plug leak in RANK.
* Plug leaks in ssindex, ssgrep, and ssconvert.
+ * Fix export of Gnumeric-specific patterns to xls. [#564078]
--------------------------------------------------------------------------
Gnumeric 1.9.3
Modified: trunk/plugins/excel/ms-excel-write.c
==============================================================================
--- trunk/plugins/excel/ms-excel-write.c (original)
+++ trunk/plugins/excel/ms-excel-write.c Thu Dec 11 21:01:08 2008
@@ -23,6 +23,7 @@
#include "ms-biff.h"
#include "excel.h"
#include "ranges.h"
+#include "pattern.h"
#include "sheet-filter.h"
#include "ms-excel-write.h"
#include "ms-excel-xf.h"
@@ -168,11 +169,14 @@
static int
map_pattern_to_xl (int i)
{
- static int const map_to_excel[] = {
+ static int const map_to_excel[GNUMERIC_SHEET_PATTERNS + 1] = {
0,
1, 3, 2, 4, 17, 18,
5, 6, 8, 7, 9, 10,
- 11, 12, 13, 14, 15, 16
+ 11, 12, 13, 14, 15, 16,
+ /* The above are XL patterns. We have a few more. */
+ 12, 5, 4, 4, 3,
+ 1, 2
};
/* Default to Solid if out of range */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]