Set wxHtmlHelpFrame title format before creating it.
This ensures that it's always set before it can be used, fixing assert introduced in r75748. Closes #15977. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -176,12 +176,12 @@ wxHtmlHelpFrame* wxHtmlHelpController::CreateHelpFrame(wxHtmlHelpData *data)
|
||||
{
|
||||
wxHtmlHelpFrame* frame = new wxHtmlHelpFrame(data);
|
||||
frame->SetController(this);
|
||||
frame->SetTitleFormat(m_titleFormat);
|
||||
frame->Create(m_parentWindow, -1, wxEmptyString, m_FrameStyle
|
||||
#if wxUSE_CONFIG
|
||||
, m_Config, m_ConfigRoot
|
||||
#endif // wxUSE_CONFIG
|
||||
);
|
||||
frame->SetTitleFormat(m_titleFormat);
|
||||
frame->SetShouldPreventAppExit(m_shouldPreventAppExit);
|
||||
m_helpFrame = frame;
|
||||
return frame;
|
||||
|
Reference in New Issue
Block a user