From 0aa8b5874f91396fa68f956a497896dd4971c344 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 7 Apr 2019 15:01:04 -0700 Subject: [PATCH] Fix setting markup on a wxButton that was initially created with an empty label See #18378 --- src/gtk/button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/button.cpp b/src/gtk/button.cpp index 97c4bc93e9..ce72ff150a 100644 --- a/src/gtk/button.cpp +++ b/src/gtk/button.cpp @@ -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?" );