Fix setting markup on a wxButton that was initially created with an empty label
See #18378
This commit is contained in:
parent
909adbb6bf
commit
0aa8b5874f
@ -260,7 +260,7 @@ bool wxButton::DoSetLabelMarkup(const wxString& markup)
|
||||
if ( stripped.empty() && !markup.empty() )
|
||||
return false;
|
||||
|
||||
wxControl::SetLabel(stripped);
|
||||
SetLabel(stripped);
|
||||
|
||||
GtkLabel * const label = GTKGetLabel();
|
||||
wxCHECK_MSG( label, false, "no label in this button?" );
|
||||
|
Loading…
Reference in New Issue
Block a user