From: Eduardo Davila Date: Mon, 16 Feb 2009 13:54:47 +0000 (+0000) Subject: BUG linux wxString -> const char* + Segmentation.png X-Git-Tag: EED.02Oct2009~66 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=51b7c37ebfc9c75253022678c73c7f1780ebfabd;p=creaContours.git BUG linux wxString -> const char* + Segmentation.png --- diff --git a/appli/wxContourGUIExample/wxContourGUIExample.cxx b/appli/wxContourGUIExample/wxContourGUIExample.cxx index ddf28af..9e8d5e5 100644 --- a/appli/wxContourGUIExample/wxContourGUIExample.cxx +++ b/appli/wxContourGUIExample/wxContourGUIExample.cxx @@ -16,7 +16,7 @@ #include "vtkMetaImageReader.h" #include -#include "vtkImageData.h" +#include "vtkImageData.h"mb_ #include "wx/artprov.h" #include @@ -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{ diff --git a/data/Icons/segmentation.PNG b/data/Icons/Segmentation.png similarity index 100% rename from data/Icons/segmentation.PNG rename to data/Icons/Segmentation.png