mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 22:23:43 +00:00
Prefs: escape ampersands in panel names
This commit is contained in:
parent
9d7d6eae10
commit
5572b775d2
@ -334,8 +334,10 @@ void PAGED_DIALOG::UpdateResetButton( int aPage )
|
||||
{
|
||||
if( panel && ( panel->GetWindowStyle() & wxRESETTABLE ) )
|
||||
{
|
||||
m_resetButton->SetLabel( wxString::Format( _( "Reset %s to Defaults" ),
|
||||
m_treebook->GetPageText( aPage ) ) );
|
||||
wxString name = m_treebook->GetPageText( aPage );
|
||||
name.Replace( wxT( "&" ), wxT( "&&" ) );
|
||||
|
||||
m_resetButton->SetLabel( wxString::Format( _( "Reset %s to Defaults" ), name ) );
|
||||
m_resetButton->SetToolTip( panel->GetHelpTextAtPoint( wxPoint( -INT_MAX, INT_MAX ),
|
||||
wxHelpEvent::Origin_Unknown ) );
|
||||
m_resetButton->Enable( true );
|
||||
|
Loading…
Reference in New Issue
Block a user