]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
patch for default zone colors on Linux
authorasl <asl@opencascade.com>
Fri, 19 Jun 2015 13:25:38 +0000 (16:25 +0300)
committerasl <asl@opencascade.com>
Fri, 19 Jun 2015 13:25:38 +0000 (16:25 +0300)
src/HYDROGUI/HYDROGUI_CalculationOp.cxx

index 8ca26d1c48ff4c0df1caa6a6d667cfb72cb40d43..2c84a4fb295e1bf626005bcbf37198d14fe346ce 100644 (file)
@@ -1151,7 +1151,7 @@ QColor HYDROGUI_CalculationOp::GenerateDefaultZonesColor( int theIndex,
                                                           float theValue/* = 0.95*/ ) const
 {
   float aGoldenRatioConjugate = (float)(360./582.);
-  float aHue = (float)rand();
+  float aHue = (float)(rand()%100);
   aHue += aGoldenRatioConjugate*theIndex;
   aHue -= floor(aHue);