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
This commit is contained in:
Scott Mansell
2015-10-06 05:24:05 +13:00
committed by Vadim Zeitlin
parent 6b34f39f46
commit c33dc4459c

View File

@@ -63,7 +63,11 @@ void wxBusyInfo::Init(const wxBusyInfoFlags& flags)
wxDefaultSize, wxDefaultSize,
wxALIGN_CENTRE); wxALIGN_CENTRE);
title->SetFont(title->GetFont().Scaled(2)); title->SetFont(title->GetFont().Scaled(2));
#if wxUSE_MARKUP
title->SetLabelMarkup(flags.m_title); title->SetLabelMarkup(flags.m_title);
#else
title->SetLabelText(flags.m_title);
#endif
sizer->Add(title, wxSizerFlags().DoubleBorder().Expand()); sizer->Add(title, wxSizerFlags().DoubleBorder().Expand());
} }