1 From 98d2b3377da71b713a37f9004acff3c02c22ce2b Mon Sep 17 00:00:00 2001
2 From: Kohei Yoshida <kohei.yoshida@gmail.com>
3 Date: Wed, 31 Jan 2018 22:11:25 -0500
4 Subject: [PATCH 1/2] Alpha value of 0 means fully transparent. I'm sure 255
7 (cherry picked from commit f7953a814d6a43205791b6cc01c528ef5d4b1ce3)
9 src/liborcus/gnumeric_sheet_context.cpp | 4 ++--
10 src/liborcus/odf_styles_context.cpp | 2 +-
11 2 files changed, 3 insertions(+), 3 deletions(-)
13 diff --git a/src/liborcus/gnumeric_sheet_context.cpp b/src/liborcus/gnumeric_sheet_context.cpp
14 index 8659cc3..6bd1471 100644
15 --- a/src/liborcus/gnumeric_sheet_context.cpp
16 +++ b/src/liborcus/gnumeric_sheet_context.cpp
17 @@ -132,7 +132,7 @@ public:
19 spreadsheet::color_elem_t red, green, blue;
20 gnumeric_helper::parse_RGB_color_attribute(red, green, blue, attr.value);
21 - m_styles.set_fill_fg_color(0, red, green, blue);
22 + m_styles.set_fill_fg_color(255, red, green, blue);
26 @@ -145,7 +145,7 @@ public:
28 spreadsheet::color_elem_t red, green, blue;
29 gnumeric_helper::parse_RGB_color_attribute(red, green, blue, attr.value);
30 - m_styles.set_fill_bg_color(0, red, green, blue);
31 + m_styles.set_fill_bg_color(255, red, green, blue);
35 diff --git a/src/liborcus/odf_styles_context.cpp b/src/liborcus/odf_styles_context.cpp
36 index d988f7d..f9c422a 100644
37 --- a/src/liborcus/odf_styles_context.cpp
38 +++ b/src/liborcus/odf_styles_context.cpp
39 @@ -739,7 +739,7 @@ void styles_context::start_element(xmlns_id_t ns, xml_token_t name, const std::v
41 spreadsheet::color_elem_t red, green, blue;
42 func.get_background_color(red, green, blue);
43 - mp_styles->set_fill_bg_color(0, red, green, blue);
44 + mp_styles->set_fill_bg_color(255, red, green, blue);
47 size_t fill_id = mp_styles->commit_fill();