Kaydet (Commit) a1c36eff authored tarafından Kohei Yoshida's avatar Kohei Yoshida Kaydeden (comit) Kohei Yoshida

Ignore the alpha value in font colors.

Using it would remove the color altogether.

Change-Id: I2c14316c9c9c885f4e7615e4057e752a58223227
Reviewed-on: https://gerrit.libreoffice.org/49170Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarKohei Yoshida <libreoffice@kohei.us>
üst c7f74bba
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment