From e537480f1e7b1e5ef439a5874fd9359896286ba1 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Sun, 26 Jan 2014 22:01:42 +0100 Subject: [PATCH] Fixes crash when there are no edges for a given net in the ratsnest. --- pcbnew/ratsnest_data.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/ratsnest_data.cpp b/pcbnew/ratsnest_data.cpp index e66451b86b..af5f6932fd 100644 --- a/pcbnew/ratsnest_data.cpp +++ b/pcbnew/ratsnest_data.cpp @@ -240,7 +240,7 @@ void RN_NET::compute() return; } - else if( boardNodes.size() == 1 ) // This case is even simpler + else if( boardNodes.size() <= 1 ) // This case is even simpler { m_rnEdges.reset( new std::vector( 0 ) );