From: Eduardo DAVILA Date: Mon, 15 Jul 2013 09:25:06 +0000 (+0200) Subject: 2058 Feature File drag and drop X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=14342b19da6542ac157c5e7881a8294b209d1a32;p=bbtkGEditor.git 2058 Feature File drag and drop --- 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));