X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxTabPanelsManager.cxx;h=7c29eaefb1e94f887567146803e76d81cec6c4ba;hb=9c270766f2c28346e128543a8b7c24fb7f4f5b85;hp=6548a8d406b5317f12dc1bb081ce97d87de36b1c;hpb=de7c0454ab8fc1b0b97dcd7112dfdb4a55ac0215;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx index 6548a8d..7c29eae 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx @@ -60,13 +60,14 @@ namespace bbtk //========================================================================= void wxTabPanelsManager::addNewTab(wxString tabName) { - _lastId++; - wxGEditorTabPanel *newPanel = new wxGEditorTabPanel(_notebook,_lastId); + + //EED 13/10/2012 wxGEditorTabPanel *newPanel = new wxGEditorTabPanel( _notebook,_lastId ); + wxGEditorTabPanel *newPanel = new wxGEditorTabPanel( _notebook,_lastId, _parent->GetBBTKFactory() ); + newPanel->setPanelsManager(this); _panels[_lastId] = newPanel; _actual = newPanel; - _notebook->AddPage(newPanel, tabName ,true); }