[gnumeric] Really import transparent objects from xls.
- From: Jean Bréfort <jbrefort src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnumeric] Really import transparent objects from xls.
- Date: Fri, 29 Jan 2010 12:20:55 +0000 (UTC)
commit a9ec6ee5644567bd54d149cfa4330dd1579da6c0
Author: Jean Brefort <jean brefort normalesup org>
Date: Fri Jan 29 13:18:47 2010 +0100
Really import transparent objects from xls.
plugins/excel/ChangeLog | 4 ++++
plugins/excel/ms-excel-read.c | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index b60ec54..4a7b946 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,7 @@
+2010-01-29 Jean Brefort <jean brefort normalesup org>
+
+ * ms-excel-read.c (ms_sheet_realize_obj): really import transparent objects.
+
2010-01-19 Morten Welinder <terra gnome org>
* Release 1.9.18
diff --git a/plugins/excel/ms-excel-read.c b/plugins/excel/ms-excel-read.c
index e4e50f0..6b14af5 100644
--- a/plugins/excel/ms-excel-read.c
+++ b/plugins/excel/ms-excel-read.c
@@ -614,8 +614,11 @@ ms_sheet_realize_obj (MSContainer *container, MSObj *obj)
style->fill.pattern.fore = ms_sheet_map_color
(esheet, obj, MS_OBJ_ATTR_FILL_BACKGROUND,
GO_COLOR_BLACK, &style->fill.auto_fore);
+ /* fill type needs work, we now suppot more than solid color */
style->fill.type = ms_obj_attr_bag_lookup (obj->attrs, MS_OBJ_ATTR_UNFILLED)
? GO_STYLE_FILL_NONE : GO_STYLE_FILL_PATTERN;
+ if (style->fill.type != GO_STYLE_FILL_PATTERN)
+ style->fill.auto_type = FALSE;
g_object_set (G_OBJECT (so), "style", style, NULL);
g_object_unref (style);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]