From: asl Date: Fri, 19 Jun 2015 13:25:38 +0000 (+0300) Subject: patch for default zone colors on Linux X-Git-Tag: v1.4.2~55 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5a485d8a51393f35f548a8397f9ba71fdeaaeb9b;p=modules%2Fhydro.git patch for default zone colors on Linux --- diff --git a/src/HYDROGUI/HYDROGUI_CalculationOp.cxx b/src/HYDROGUI/HYDROGUI_CalculationOp.cxx index 8ca26d1c..2c84a4fb 100644 --- a/src/HYDROGUI/HYDROGUI_CalculationOp.cxx +++ b/src/HYDROGUI/HYDROGUI_CalculationOp.cxx @@ -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);