X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxGEditorTabPanel.cxx;h=a941a94c79c9df46ca330810107895c0653a31e8;hb=14342b19da6542ac157c5e7881a8294b209d1a32;hp=030e52aeca52c607b13bbca5e86828f410036150;hpb=b7e481b5969501d55054998e3115cddd2d6ed918;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx index 030e52a..a941a94 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx @@ -175,8 +175,14 @@ namespace bbtk { std::string filePath = stdData.substr(7); std::cout << filePath << ": "; - if(wxFile::Exists(crea::std2wx(filePath))) + + FILE *ff=fopen(filePath.c_str(),"r"); + if( +// wxFile::Exists( crea::std2wx(filePath)) + ff!=NULL + ) { + fclose(ff); std::cout << "File Exists." << std::endl; wxFileName fileToOpen(crea::std2wx(filePath));