]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMPRWidget.cxx
Avoid warnings
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxMPRWidget.cxx
index f5d6a4fd98e7c5050d27676b5683f9c960be4bee..127cdb916bbbcf5544e6619680fec43e1ee91316 100644 (file)
@@ -3,8 +3,8 @@
   Program:   wxMaracas
   Module:    $RCSfile: wxMPRWidget.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/11/06 11:00:47 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2008/11/14 15:57:07 $
+  Version:   $Revision: 1.3 $
 
   Copyright: (c) 2002, 2003
   License:
@@ -2617,7 +2617,8 @@ void wxVtkMPR3DViewCntrlPanel::OnEditColorTable(wxCommandEvent& event)
                                double r        = (*ctfunVectorRed)[i];
                                double g        = (*ctfunVectorGreen)[i];
                                double b        = (*ctfunVectorBlue)[i];
-                               hDlg->addColorPoint(gr,r*255,g*255,b*255);
+                       
+hDlg->addColorPoint(gr,(int)(r*255),(int)(g*255),(int)(b*255));
                                i++;
                        }
        }
@@ -3331,7 +3332,7 @@ void wxVtkClipping3DViewCntrlPanel::OnBtnVolumeFunctions(wxCommandEvent& event)
                                double r=(*rctf)[i];
                                double g=(*gctf)[i];
                                double b=(*bctf)[i];
-                               hDlg->addColorPoint(gr,r*255,g*255,b*255);
+                               hDlg->addColorPoint(gr,(int)(r*255),(int)(g*255),(int)(b*255));
                                i++;
                        }
        }