Salome HOME
fix DriverMED_Family::Init()
[modules/smesh.git] / src / DriverMED / DriverMED_Family.cxx
index 81bfed53462567a13d76cafd977853d62abdb83f..69265bb1de1b766f103abb7925a550b5eed96d65 100644 (file)
@@ -385,9 +385,9 @@ void DriverMED_Family::Init (SMESHDS_GroupBase* theGroup)
   double aRed = aColor.Red();
   double aGreen = aColor.Green();
   double aBlue = aColor.Blue();
-  int aR = (int) aRed*255;
-  int aG = (int) aGreen*255;
-  int aB = (int) aBlue*255;
+  int aR = int( aRed*255   );
+  int aG = int( aGreen*255 );
+  int aB = int( aBlue*255  );
 //   cout << "aRed = " << aR << endl;
 //   cout << "aGreen = " << aG << endl;
 //   cout << "aBlue = " << aB << endl;