From 13339425beb2e173ab575a871d95b9feaa53a9ba Mon Sep 17 00:00:00 2001 From: Uwe Runtemund Date: Mon, 18 Apr 2022 15:30:09 +0200 Subject: [PATCH] Fix setting wxRIBBON_ART_GALLERY_BUTTON_ACTIVE_BACKGROUND_TOP_COLOUR wxRibbonMSWArtProvider::SetColour() used a wrong variable for this colour index, assign to the correct one. Closes #22321. --- src/ribbon/art_msw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ribbon/art_msw.cpp b/src/ribbon/art_msw.cpp index 640291b975..a27195e893 100644 --- a/src/ribbon/art_msw.cpp +++ b/src/ribbon/art_msw.cpp @@ -1079,7 +1079,7 @@ void wxRibbonMSWArtProvider::SetColour(int id, const wxColor& colour) m_gallery_button_active_background_gradient_colour = colour; break; case wxRIBBON_ART_GALLERY_BUTTON_ACTIVE_BACKGROUND_TOP_COLOUR: - m_gallery_button_background_top_brush.SetColour(colour); + m_gallery_button_active_background_top_brush.SetColour(colour); break; case wxRIBBON_ART_GALLERY_BUTTON_ACTIVE_FACE_COLOUR: m_gallery_button_active_face_colour = colour;