Commit 84412ce1 authored by Maciej Suminski's avatar Maciej Suminski

Delaunau triangulation algorithm was bailing out if run on an emprty container.

parent 6ad9d013
......@@ -246,7 +246,7 @@ void RN_NET::compute()
return;
}
else if( boardNodes.size() == 1 ) // This case is even simpler
else if( boardNodes.size() == 1 || boardNodes.empty() ) // This case is even simpler
{
m_rnEdges.reset( new std::vector<RN_EDGE_PTR>( 0 ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment