]> Creatis software - bbtkGEditor.git/commitdiff
BUG - Problem when crea::std2wx is not used. Problem corrected
authorcorredor <>
Wed, 10 Oct 2012 09:45:41 +0000 (09:45 +0000)
committercorredor <>
Wed, 10 Oct 2012 09:45:41 +0000 (09:45 +0000)
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx

index 3b6641effcea4a1e27d372e08e8f952c36781e2e..cdbb0e8644c7d96e041b7bd3b9fd9bb982a7f16f 100644 (file)
@@ -967,8 +967,7 @@ void wxGUIEditorGraphicBBS::OnCreateBlackBox(wxCommandEvent& event) {
 }
 //=========================================================================
 void wxGUIEditorGraphicBBS::OnPlugPackage(wxCommandEvent& event) {
-       //printf("EED wxGUIEditorGraphicBBS::OnPlugPackage ... not implemented ..\n");
-       //this is the right code but it's left to include the corresponding commented libraries
+       //DFGO2012 Plug Package functionnalities
        long style = wxDD_DEFAULT_STYLE | wxDD_DIR_MUST_EXIST;
        wxDirDialog* FD =
          new wxDirDialog( 0,
@@ -1011,8 +1010,9 @@ void wxGUIEditorGraphicBBS::OnPlugPackage(wxCommandEvent& event) {
                                        #endif
                                #endif
 
-
-                               wxMessageBox(_T(err),_T("Plug package"),wxOK | wxICON_ERROR);
+                               wxMessageBox(crea::std2wx(err), _T("Plug package"),wxOK | wxICON_ERROR);
+                               // THE FOLLOWING LINE GIVES ERRORS BECAUSE IT IS NECESSARY TO USE std2wx
+                               //wxMessageBox( _T( err) , _T("Plug package"),wxOK | wxICON_ERROR);
                        }
                }
        }while(userResponse != wxID_CANCEL);