Correct the wxButton::Setlabel nonsense
Added wxFrame::SetClientSize git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -38,6 +38,7 @@ void wxControl::Command( wxCommandEvent &WXUNUSED(event) )
|
||||
|
||||
void wxControl::SetLabel( const wxString &label )
|
||||
{
|
||||
m_label = "";
|
||||
for ( const char *pc = label; *pc != '\0'; pc++ ) {
|
||||
if ( *pc == '&' ) {
|
||||
pc++; // skip it
|
||||
@@ -47,7 +48,6 @@ void wxControl::SetLabel( const wxString &label )
|
||||
#endif
|
||||
}
|
||||
|
||||
m_label = "";
|
||||
m_label << *pc;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user