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;