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

This commit is contained in:
Maciej Suminski 2014-01-07 15:52:10 +01:00
parent 6ad9d013e2
commit 84412ce135
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) );