don't duplicate wxGetTopLevelParent() code in wxHtmlHelpController::FindTopLevelWindow()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
48715f6048
commit
9df05aab59
@ -115,12 +115,7 @@ void wxHtmlHelpController::SetTitleFormat(const wxString& title)
|
||||
// Find the top-most parent window
|
||||
wxWindow* wxHtmlHelpController::FindTopLevelWindow()
|
||||
{
|
||||
wxWindow* parent = m_helpWindow;
|
||||
while (parent && !parent->IsTopLevel())
|
||||
{
|
||||
parent = parent->GetParent();
|
||||
}
|
||||
return parent;
|
||||
return wxGetTopLevelParent(m_helpWindow);
|
||||
}
|
||||
|
||||
bool wxHtmlHelpController::AddBook(const wxFileName& book_file, bool show_wait_msg)
|
||||
|
Loading…
Reference in New Issue
Block a user