Fix setting markup on a wxButton that was initially created with an empty label

See #18378
This commit is contained in:
Paul Cornett 2019-04-07 15:01:04 -07:00
parent 909adbb6bf
commit 0aa8b5874f

View File

@ -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?" );