]> Creatis software - bbtk.git/blobdiff - packages/wx/src/bbwxColourSelector.cxx
*** empty log message ***
[bbtk.git] / packages / wx / src / bbwxColourSelector.cxx
index 9b03e2d85c14785143d5bba8dacf3dd0a2205bfc..80cfe680e8d871bbbfa804bacf116c07fae8c192 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxColourSelector.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/04/18 12:59:52 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2008/06/26 07:37:11 $
+  Version:   $Revision: 1.4 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -43,7 +43,11 @@ namespace bbwx
                           <<bbGetFullName()<<"]"<<std::endl);
 
       wxColourDialog *colordialog = new wxColourDialog( 0 );
-      colordialog->ShowModal();
+      int result_colordialog = colordialog->ShowModal();
+
+       // This line is need it by windows // EED
+       colordialog->SetReturnCode( result_colordialog );
+
       if (colordialog->GetReturnCode()==wxID_OK)
       {
          char col[100];