Linux compile fixes

This commit is contained in:
Jacob Støren 2016-08-09 07:41:08 +02:00
parent 1e9e6d8541
commit 43a1f4dbbe
2 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,7 @@
#include "RimSummaryCurve.h"
#include "cvfVector3.h"
#include <cmath>
//--------------------------------------------------------------------------------------------------
///
@ -212,7 +212,7 @@ cvf::Color3f RimCurveLookCalculator::gradeColor(const cvf::Color3f& color, float
targetC = cvf::Vec3f(1, 1, 1);
}
cvf::Vec3f newColor = fabs(factor) * (targetC - orgC) + orgC;
cvf::Vec3f newColor = ((float)fabs(factor)) * (targetC - orgC) + orgC;
return cvf::Color3f(newColor[0], newColor[1], newColor[2]);
}

View File

@ -16,6 +16,7 @@
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "cvfBase.h"
#include "cvfColor3.h"
#include <set>
#include "RifEclipseSummaryAddress.h"