summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-04-07 16:46:33 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-04-08 10:51:21 +0200
commit303cc5c368a3fd192e7e34e3f4be1378cfb336e9 (patch)
tree81128b39d7253c7013b568aa03faa6fe7926e014
parent631d075f294086fa55b7e4470af076c4d635958b (diff)
Red used instead of Green
Change-Id: I1261154fcff6f4904b4360099cbf26e33b9e7463 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132694 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--vcl/unx/gtk3/gtkinst.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index 31935aea6102..2732ea7dd0ad 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -16699,7 +16699,7 @@ private:
void set_text_background_color(const Color& rColor)
{
guint16 nRed = rColor.GetRed() << 8;
- guint16 nGreen = rColor.GetRed() << 8;
+ guint16 nGreen = rColor.GetGreen() << 8;
guint16 nBlue = rColor.GetBlue() << 8;
PangoAttrType aFilterAttrs[] = {PANGO_ATTR_BACKGROUND, PANGO_ATTR_INVALID};
@@ -16716,7 +16716,7 @@ private:
void set_text_foreground_color(const Color& rColor, bool bSetBold)
{
guint16 nRed = rColor.GetRed() << 8;
- guint16 nGreen = rColor.GetRed() << 8;
+ guint16 nGreen = rColor.GetGreen() << 8;
guint16 nBlue = rColor.GetBlue() << 8;
PangoAttrType aFilterAttrs[] = {PANGO_ATTR_FOREGROUND, PANGO_ATTR_WEIGHT, PANGO_ATTR_INVALID};