summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2018-02-02 22:07:28 -0500
committerKohei Yoshida <libreoffice@kohei.us>2018-02-03 05:37:10 +0100
commita1c36eff089c3cd695bd78090575ca1c7677121e (patch)
tree1cf82010ae84c9e5f8670f48284e98c08fb4bb4d
parentc7f74bbab4c666a8b3b865dbd58b3666f1f63052 (diff)
Ignore the alpha value in font colors.
Using it would remove the color altogether. Change-Id: I2c14316c9c9c885f4e7615e4057e752a58223227 Reviewed-on: https://gerrit.libreoffice.org/49170 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
-rw-r--r--sc/source/filter/orcus/interface.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx
index 4cfd8447e2d5..40140ae93b5e 100644
--- a/sc/source/filter/orcus/interface.cxx
+++ b/sc/source/filter/orcus/interface.cxx
@@ -1485,12 +1485,13 @@ void ScOrcusStyles::set_font_underline_color(orcus::spreadsheet::color_elem_t al
maCurrentFont.maUnderlineColor = Color(alpha, red, green, blue);
}
-void ScOrcusStyles::set_font_color(orcus::spreadsheet::color_elem_t alpha,
+void ScOrcusStyles::set_font_color(orcus::spreadsheet::color_elem_t /*alpha*/,
orcus::spreadsheet::color_elem_t red,
orcus::spreadsheet::color_elem_t green,
orcus::spreadsheet::color_elem_t blue)
{
- maCurrentFont.maColor = Color(alpha, red, green, blue);
+ // Ignore the alpha value for now.
+ maCurrentFont.maColor = Color(red, green, blue);
maCurrentFont.mbHasFontAttr = true;
}