From 31e25ac4cfb51db634149d8f38868133c59aa77e Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 9 Jul 2014 15:10:32 +0200 Subject: [PATCH] Fixed module viewer crash. --- pcbnew/modview_frame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/modview_frame.cpp b/pcbnew/modview_frame.cpp index cd0622fd12..75a20bcdee 100644 --- a/pcbnew/modview_frame.cpp +++ b/pcbnew/modview_frame.cpp @@ -149,6 +149,8 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent m_footprintList = new wxListBox( this, ID_MODVIEW_FOOTPRINT_LIST, wxDefaultPosition, wxDefaultSize, 0, NULL, wxLB_HSCROLL ); + SetBoard( new BOARD() ); + // Ensure all layers and items are visible: GetBoard()->SetVisibleAlls(); SetScreen( new PCB_SCREEN( GetPageSizeIU() ) );