From 14342b19da6542ac157c5e7881a8294b209d1a32 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Mon, 15 Jul 2013 11:25:06 +0200 Subject: [PATCH] 2058 Feature File drag and drop --- .../bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)); -- 2.45.0