From 8e828674c42521ea17de29b184362873e35e8fd8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 17 Feb 2014 23:53:15 +0000 Subject: [PATCH] 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 --- src/html/helpctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html/helpctrl.cpp b/src/html/helpctrl.cpp index 972f20dea5..390260f672 100644 --- a/src/html/helpctrl.cpp +++ b/src/html/helpctrl.cpp @@ -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;