From 92816e4689c68c25e2d84a8224a43600702212f0 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 7 Jan 2014 15:52:10 +0100 Subject: [PATCH] Delaunau triangulation algorithm was bailing out if run on an emprty container. --- 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 a5f708e0fe..f33d5e96e6 100644 --- a/pcbnew/ratsnest_data.cpp +++ b/pcbnew/ratsnest_data.cpp @@ -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( 0 ) );