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.
This commit is contained in:
Uwe Runtemund 2022-04-18 15:30:09 +02:00 committed by Vadim Zeitlin
parent 94f698cc15
commit 13339425be

View file

@ -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;