]> Creatis software - creaImageIO.git/blobdiff - src/creaImageIOWxAnySimpleDlg.cpp
#3131 creaImageIO Feature New Normal - branch changeWx28to30 compilation with wxWid...
[creaImageIO.git] / src / creaImageIOWxAnySimpleDlg.cpp
index 926e1181675271f373a4e08021c5670b1fa536a3..5a713352cac2f32494cb0499d842a421e32a44f6 100644 (file)
@@ -88,7 +88,12 @@ namespace creaImageIO
      void WxAnySimpleDlg::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 )