Fix footprint viewer perspective save bug.

This commit is contained in:
Wayne Stambaugh 2013-12-11 15:08:13 -05:00
parent ed42092464
commit b85a713395
1 changed files with 2 additions and 2 deletions

View File

@ -281,6 +281,8 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( PCB_BASE_FRAME* aParent,
FOOTPRINT_VIEWER_FRAME::~FOOTPRINT_VIEWER_FRAME()
{
SaveSettings();
if( m_Draw3DFrame )
m_Draw3DFrame->Destroy();
}
@ -301,8 +303,6 @@ FOOTPRINT_VIEWER_FRAME* FOOTPRINT_VIEWER_FRAME::GetActiveFootprintViewer()
void FOOTPRINT_VIEWER_FRAME::OnCloseWindow( wxCloseEvent& Event )
{
SaveSettings();
if( m_Semaphore )
{
m_Semaphore->Post();