Minor fix to ratsnest algorithm (GAL).

This commit is contained in:
Maciej Suminski 2015-03-10 15:02:27 +01:00
parent c160a7de17
commit 97e4a3897c
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ void RN_NET::compute()
m_rnEdges.reset( new std::vector<RN_EDGE_MST_PTR>( 0 ) ); m_rnEdges.reset( new std::vector<RN_EDGE_MST_PTR>( 0 ) );
// Check if the only possible connection exists // Check if the only possible connection exists
if( boardEdges.size() == 0 ) if( boardEdges.size() == 0 && boardNodes.size() == 2 )
{ {
RN_LINKS::RN_NODE_SET::iterator last = ++boardNodes.begin(); RN_LINKS::RN_NODE_SET::iterator last = ++boardNodes.begin();