From f292a1db8976a103b88932c2567661009d21b5fa Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Sun, 4 May 2014 20:20:49 +0200 Subject: [PATCH] Clearing m_hiddentItems to avoid PNS crashes. --- pcbnew/router/pns_router.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/router/pns_router.cpp b/pcbnew/router/pns_router.cpp index 72d4cb7960..9a57b50b16 100644 --- a/pcbnew/router/pns_router.cpp +++ b/pcbnew/router/pns_router.cpp @@ -470,6 +470,8 @@ void PNS_ROUTER::EraseView() item->ViewSetVisible( true ); } + m_hiddenItems.clear(); + if( m_previewItems ) { m_previewItems->FreeItems();