X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaImageIOWxSimpleDlg.cpp;fp=src%2FcreaImageIOWxSimpleDlg.cpp;h=09f7e022d348a298c2e5f276e98f83f8bbba7f28;hb=2281508661c7a5b0732eb6ec64cb97b753df5de0;hp=ca984309b7eaf5d5e5cb27d8f3110c929317dd28;hpb=56e12662d134e9c80989719e6295d7c913cf7af0;p=creaImageIO.git diff --git a/src/creaImageIOWxSimpleDlg.cpp b/src/creaImageIOWxSimpleDlg.cpp index ca98430..09f7e02 100644 --- a/src/creaImageIOWxSimpleDlg.cpp +++ b/src/creaImageIOWxSimpleDlg.cpp @@ -69,7 +69,12 @@ namespace creaImageIO void WxSimpleDlg::OnReadFile(wxCommandEvent& event) { int resultShowModal; +//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0 +#if wxMAJOR_VERSION <= 2 wxFileDialog* fileDlg = new wxFileDialog( 0, _T("Select file"), _T(""), _T(""), crea::std2wx("*"), wxOPEN |wxFD_MULTIPLE, wxDefaultPosition); +#else + wxFileDialog* fileDlg = new wxFileDialog( 0, _T("Select file"), _T(""), _T(""), crea::std2wx("*"), wxFD_OPEN |wxFD_MULTIPLE, wxDefaultPosition); +#endif resultShowModal = fileDlg->ShowModal(); if ( resultShowModal==wxID_OK )