Commit 97e4a389 authored by Maciej Suminski's avatar Maciej Suminski

Minor fix to ratsnest algorithm (GAL).

parent c160a7de
...@@ -281,7 +281,7 @@ void RN_NET::compute() ...@@ -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();
......
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