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:
parent
6b34f39f46
commit
c33dc4459c
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user