Set mnemonics for the closest preceding label

Due to a wrong "else" in RealizeTabOrder() implementation, we could set
the mnemonic widget for a previous widget using mnemonics (i.e.
wxStaticText or wxStaticBox) rather than the one closest to the actual
control activated by the mnemonic.
This commit is contained in:
Vadim Zeitlin
2019-03-27 15:39:39 +01:00
parent b8789b9d6f
commit 01ed0842ff

View File

@@ -4786,7 +4786,8 @@ void wxWindowGTK::RealizeTabOrder()
}
}
}
else if ( win->GTKWidgetNeedsMnemonic() )
if ( win->GTKWidgetNeedsMnemonic() )
{
mnemonicWindow = win;
}