]> Creatis software - bbtkGEditor.git/commitdiff
2058 Feature File drag and drop
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Mon, 15 Jul 2013 09:25:06 +0000 (11:25 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Mon, 15 Jul 2013 09:25:06 +0000 (11:25 +0200)
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx

index 030e52aeca52c607b13bbca5e86828f410036150..a941a94c79c9df46ca330810107895c0653a31e8 100644 (file)
@@ -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));