Salome HOME
fix DriverMED_Family::Init()
authoreap <eap@opencascade.com>
Tue, 8 Apr 2008 12:14:41 +0000 (12:14 +0000)
committereap <eap@opencascade.com>
Tue, 8 Apr 2008 12:14:41 +0000 (12:14 +0000)
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();
   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;
 //   cout << "aRed = " << aR << endl;
 //   cout << "aGreen = " << aG << endl;
 //   cout << "aBlue = " << aB << endl;