]> Creatis software - creaContours.git/commitdiff
BUG linux wxString -> const char* + Segmentation.png
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Mon, 16 Feb 2009 13:54:47 +0000 (13:54 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Mon, 16 Feb 2009 13:54:47 +0000 (13:54 +0000)
appli/wxContourGUIExample/wxContourGUIExample.cxx
data/Icons/Segmentation.png [moved from data/Icons/segmentation.PNG with 100% similarity]

index ddf28af5c096a10da2b457e2815c7406cd525149..9e8d5e5f54e0ce404fb66f1e5271fd2e73bbe989 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "vtkMetaImageReader.h"
 #include <map>
-#include "vtkImageData.h"
+#include "vtkImageData.h"mb_
 
 #include "wx/artprov.h"
 #include <wx/filedlg.h>
@@ -134,7 +134,7 @@ bool wxTheApplication :: OnInit()
        }else if (w.GetReturnCode() == wxID_CANCEL){
           vtkMetaImageReader *reader = vtkMetaImageReader::New();
           wxString filename= getExecutablePath()+ wxString( _T("/data/hola.mhd") , wxConvUTF8 );          
-          reader->SetFileName( filename.c_str() );
+          reader->SetFileName( (const char*)(filename.mb_str()) );
           reader->Update();
           images.push_back(reader->GetOutput());
        }else{