Fix bitmap returned from wxAuiToolBarItem::GetDisabledBitmap()
Return the disabled bitmap and not the normal one.
This fixes a regression introduced in 9a5123afed (Use wxBitmapBundle in
wxAuiToolBar and wxAuiPaneInfo too, 2021-11-14).
Closes #23666.
This commit is contained in:
parent
e1e2e982e3
commit
eae24cc3b2
1 changed files with 1 additions and 1 deletions
|
|
@ -176,7 +176,7 @@ public:
|
|||
void SetDisabledBitmap(const wxBitmapBundle& bmp) { m_disabledBitmap = bmp; }
|
||||
const wxBitmapBundle& GetDisabledBitmapBundle() const { return m_disabledBitmap; }
|
||||
wxBitmap GetDisabledBitmapFor(wxWindow* wnd) const { return m_disabledBitmap.GetBitmapFor(wnd); }
|
||||
wxBitmap GetDisabledBitmap() const { return GetBitmapFor(m_window); }
|
||||
wxBitmap GetDisabledBitmap() const { return GetDisabledBitmapFor(m_window); }
|
||||
|
||||
// Return the bitmap for the current state, normal or disabled.
|
||||
wxBitmap GetCurrentBitmapFor(wxWindow* wnd) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue