Skip to content

Commit

Permalink
Fix ribbon toolbar buttons getting stuck in pressed state too
Browse files Browse the repository at this point in the history
This is the same as the previous commit (of which it should have been
part of) but for wxRibbonToolBar.

See wxWidgets#25019.
  • Loading branch information
newesttools authored and vadz committed Jan 11, 2025
1 parent 138937b commit 87135ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ribbon/toolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,7 @@ void wxRibbonToolBar::OnMouseEnter(wxMouseEvent& evt)
{
if(m_active_tool && !evt.LeftIsDown())
{
m_active_tool->state &= ~wxRIBBON_TOOLBAR_TOOL_ACTIVE_MASK;
m_active_tool = nullptr;
}
}
Expand Down

0 comments on commit 87135ea

Please sign in to comment.