Fix linux error

This commit is contained in:
Rebecca Cox
2017-12-04 12:08:26 +01:00
parent 67fe2e268a
commit c90715d038

View File

@@ -94,8 +94,8 @@ void RivIntersectionGeometryGenerator::calculateArrays()
cvf::Vec3d maxHeightVec; cvf::Vec3d maxHeightVec;
double maxSectionHeightUp; double maxSectionHeightUp = 0;
double maxSectionHeightDown; double maxSectionHeightDown = 0;
if (m_crossSection->type == RimIntersection::CS_AZIMUTHLINE) if (m_crossSection->type == RimIntersection::CS_AZIMUTHLINE)
{ {
@@ -169,7 +169,7 @@ void RivIntersectionGeometryGenerator::calculateArrays()
{ {
cvf::Vec3d temp = vertex.vx - p1; cvf::Vec3d temp = vertex.vx - p1;
double dot = temp.dot(m_extrusionDirection); double dot = temp.dot(m_extrusionDirection);
double lengthCheck; double lengthCheck = 0;
if (dot < 0) if (dot < 0)
{ {