Fix crash on inconsistent input

This commit is contained in:
Lukáš Hejl 2020-08-30 20:38:07 +02:00
parent b28f9b8935
commit 8e6760e033
2 changed files with 11 additions and 3 deletions

View file

@ -149,7 +149,7 @@ std::unique_ptr<FillAdaptive_Internal::Octree> FillAdaptive::build_octree(
{
using namespace FillAdaptive_Internal;
if(line_spacing <= 0)
if(line_spacing <= 0 || std::isnan(line_spacing))
{
return nullptr;
}