Assert on contourLevel range not being empty for cafContourLines

This commit is contained in:
Gaute Lindkvist
2018-11-05 14:41:12 +01:00
parent 1422403b71
commit 937dacd7df

View File

@@ -211,6 +211,7 @@ void caf::ContourLines::create(const std::vector<double>& dataXY, const std::vec
//--------------------------------------------------------------------------------------------------
double caf::ContourLines::contourRange(const std::vector<double>& contourLevels)
{
CVF_ASSERT(!contourLevels.empty());
return std::max(1.0e-6, contourLevels.back() - contourLevels.front());
}