From c33dc4459c8d824a932de67a89dda76f065f4ff5 Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Tue, 6 Oct 2015 05:24:05 +1300 Subject: [PATCH] Fix building of wxBusyInfo with wxUSE_MARKUP disabled Don't call SetLabelMarkup() if it's not available. Closes https://github.com/wxWidgets/wxWidgets/pull/109 --- src/generic/busyinfo.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/generic/busyinfo.cpp b/src/generic/busyinfo.cpp index cdff39650f..458b21cc5d 100644 --- a/src/generic/busyinfo.cpp +++ b/src/generic/busyinfo.cpp @@ -63,7 +63,11 @@ void wxBusyInfo::Init(const wxBusyInfoFlags& flags) wxDefaultSize, wxALIGN_CENTRE); title->SetFont(title->GetFont().Scaled(2)); +#if wxUSE_MARKUP title->SetLabelMarkup(flags.m_title); +#else + title->SetLabelText(flags.m_title); +#endif sizer->Add(title, wxSizerFlags().DoubleBorder().Expand()); }