From 51b7c37ebfc9c75253022678c73c7f1780ebfabd Mon Sep 17 00:00:00 2001 From: Eduardo Davila Date: Mon, 16 Feb 2009 13:54:47 +0000 Subject: [PATCH] BUG linux wxString -> const char* + Segmentation.png --- appli/wxContourGUIExample/wxContourGUIExample.cxx | 4 ++-- data/Icons/{segmentation.PNG => Segmentation.png} | Bin 2 files changed, 2 insertions(+), 2 deletions(-) rename data/Icons/{segmentation.PNG => Segmentation.png} (100%) 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 -- 2.45.1