]> Creatis software - creaImageIO.git/blobdiff - src/creaImageIOWxAnySimpleDlg.cpp
#3331 Add Manufacturer tag DICOM (0008,0070)
[creaImageIO.git] / src / creaImageIOWxAnySimpleDlg.cpp
index a8db5f73ed26584d538de30ea503e6ed0f2b050f..2566f455f94a3cf8e0dc875b296700b6a6696a1a 100644 (file)
@@ -26,6 +26,7 @@
 */
 
 
+#include <vtkVersionMacros.h>
 #include "creaImageIOWxAnySimpleDlg.h"
 
 #include "creaImageIOWxGimmickReaderDialog.h"
@@ -94,7 +95,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 )