From: Eduardo DAVILA Date: Fri, 5 Feb 2016 10:03:41 +0000 (+0100) Subject: #2816 BBTK Bug New Normal - std FilesFromDirectory box not clean the list for the... X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=bbtk.git;a=commitdiff_plain;h=de86b2c1152e6932fd8d846702aa5a72b81ded5c #2816 BBTK Bug New Normal - std FilesFromDirectory box not clean the list for the second execution --- diff --git a/packages/std/src/bbstdFilesFromDirectory.cxx b/packages/std/src/bbstdFilesFromDirectory.cxx index b40f1fb..fc271c2 100644 --- a/packages/std/src/bbstdFilesFromDirectory.cxx +++ b/packages/std/src/bbstdFilesFromDirectory.cxx @@ -100,6 +100,7 @@ std::string FilesFromDirectory::NormalizePath(std::string const &pathname) */ int FilesFromDirectory::Explore(std::string const &dirpath, bool recursive) { + Filenames.clear(); int numberOfFiles = 0; std::string fileName; std::string dirName = NormalizePath(dirpath); diff --git a/packages/wx/src/bbwxComboBox.cxx b/packages/wx/src/bbwxComboBox.cxx index 234a0e6..e270639 100644 --- a/packages/wx/src/bbwxComboBox.cxx +++ b/packages/wx/src/bbwxComboBox.cxx @@ -142,10 +142,12 @@ namespace bbwx if (mTypeForm==1) { wxlistbox->Clear(); + for (i=0;iAppend( bbtk::std2wx( lstIn[i] ) ); } // for i + wxlistbox->SetSelection(iSelection); } else { wxchoice->Clear();