vcl/unx/gtk3/gtkinst.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 303cc5c368a3fd192e7e34e3f4be1378cfb336e9 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Apr 7 16:46:33 2022 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Fri Apr 8 10:51:21 2022 +0200 Red used instead of Green Change-Id: I1261154fcff6f4904b4360099cbf26e33b9e7463 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132694 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> 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};