From: cervenansky <> Date: Thu, 24 May 2012 15:45:49 +0000 (+0000) Subject: Bug #1377 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=83832fd6b9d380b61a38258d937c0aad9dd2f6ae;p=bbtkGEditor.git Bug #1377 --- diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx index 2f1fc26..d3a0cd3 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx @@ -731,6 +731,12 @@ void wxGUIEditorGraphicBBS::OnSaveActualDiagram(wxCommandEvent& event) { pathfilenamebbs[pathfilenamebbs.length() - 1] = 's'; if (_tabsMgr->isActualDiagramComplexBox() == false) { + std::string name = _tabsMgr->GetNameTabPanel(); + if(name[name.length() - 1] == '*') + { + name =name.substr(0,name.length()-1); + } + _tabsMgr->SetNameTabPanel(wxString (name.c_str(), wxConvUTF8)); SaveActualDiagram(pathfilename); SaveActualBBS(pathfilenamebbs); } else { @@ -912,12 +918,12 @@ void wxGUIEditorGraphicBBS::OnHelpBBeditor(wxCommandEvent& event) { //========================================================================= void wxGUIEditorGraphicBBS::OnCreatePackage(wxCommandEvent& event) { - bbtkSystemTools::CreatePackage(); + //bbtkSystemTools::CreatePackage(); } //========================================================================= void wxGUIEditorGraphicBBS::OnCreateBlackBox(wxCommandEvent& event) { - bbtkSystemTools::CreateBlackBox(); + //bbtkSystemTools::CreateBlackBox(); } //========================================================================= void wxGUIEditorGraphicBBS::OnPlugPackage(wxCommandEvent& event) {