Speed up adding pages during freezing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2833,6 +2833,9 @@ public:
|
|||||||
if (!m_tabs)
|
if (!m_tabs)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (m_tabs->IsFrozen() || m_tabs->GetParent()->IsFrozen())
|
||||||
|
return;
|
||||||
|
|
||||||
if (m_tabs->GetFlags() & wxAUI_NB_BOTTOM)
|
if (m_tabs->GetFlags() & wxAUI_NB_BOTTOM)
|
||||||
{
|
{
|
||||||
m_tab_rect = wxRect (m_rect.x, m_rect.y + m_rect.height - m_tab_ctrl_height, m_rect.width, m_tab_ctrl_height);
|
m_tab_rect = wxRect (m_rect.x, m_rect.y + m_rect.height - m_tab_ctrl_height, m_rect.width, m_tab_ctrl_height);
|
||||||
@@ -3273,7 +3276,7 @@ bool wxAuiNotebook::DeletePage(size_t page_idx)
|
|||||||
|
|
||||||
// hide the window in advance, as this will
|
// hide the window in advance, as this will
|
||||||
// prevent flicker
|
// prevent flicker
|
||||||
if ( !IsBeingDeleted() )
|
if ( !IsBeingDeleted() )
|
||||||
ShowWnd(wnd, false);
|
ShowWnd(wnd, false);
|
||||||
|
|
||||||
if (!RemovePage(page_idx))
|
if (!RemovePage(page_idx))
|
||||||
|
Reference in New Issue
Block a user