From 5a485d8a51393f35f548a8397f9ba71fdeaaeb9b Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 19 Jun 2015 16:25:38 +0300 Subject: [PATCH] patch for default zone colors on Linux --- src/HYDROGUI/HYDROGUI_CalculationOp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2