From f2d8a2767ec3bc3d6c102d8958ee6b50dc1fa36c Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 15 Jul 2013 16:36:20 +0000 Subject: [PATCH 1/1] making sure images are in synch with the pages git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/notebook_osx.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osx/notebook_osx.cpp b/src/osx/notebook_osx.cpp index 90dc488863..bbe6f0a4cd 100644 --- a/src/osx/notebook_osx.cpp +++ b/src/osx/notebook_osx.cpp @@ -173,6 +173,7 @@ wxNotebookPage* wxNotebook::DoRemovePage(size_t nPage) wxNotebookPage* page = m_pages[nPage] ; m_pages.RemoveAt(nPage); + m_images.RemoveAt(nPage); MacSetupTabs(); @@ -190,7 +191,8 @@ wxNotebookPage* wxNotebook::DoRemovePage(size_t nPage) // remove all pages bool wxNotebook::DeleteAllPages() { - WX_CLEAR_ARRAY(m_pages) ; + WX_CLEAR_ARRAY(m_pages); + m_images.clear(); MacSetupTabs(); m_selection = wxNOT_FOUND ; InvalidateBestSize(); -- 2.45.2