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