fix small layout issues

This commit is contained in:
dulouie
2018-03-01 21:48:15 +01:00
committed by Arne
parent 492f5057e2
commit d8b5b6938d
2 changed files with 136 additions and 126 deletions

View File

@@ -77,9 +77,10 @@ const App::PropertyIntegerConstraint::Constraints intPercent = {0,100,1};
ViewProviderGeometryObject::ViewProviderGeometryObject() : pcBoundSwitch(0),pcBoundColor(0)
{
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View");
bool randomColor = hGrp->GetBool("randomColor", true);
bool randomColor = hGrp->GetBool("RandomColor", true);
float r,g,b;
if(randomColor){ // random box checked
if(randomColor){
float fMax = (float)RAND_MAX;
r = (float)rand()/fMax;
g = (float)rand()/fMax;