Kicad manager: fix a potential bug which could crash Kicad manager. math_for_graphics.cpp: remove useless includes.

This commit is contained in:
jean-pierre charras 2015-12-07 10:24:31 +01:00
parent 2e04d4d621
commit c80d92e927
2 changed files with 2 additions and 3 deletions

View File

@ -173,7 +173,8 @@ void TREEPROJECT_ITEM::Activate( TREE_PROJECT_FRAME* prjframe )
wxString fullFileName = GetFileName();
wxTreeItemId id = GetId();
KICAD_MANAGER_FRAME* frame = (KICAD_MANAGER_FRAME*) Pgm().App().GetTopWindow();
KICAD_MANAGER_FRAME* frame = prjframe->m_Parent;
wxASSERT( frame );
switch( GetType() )
{

View File

@ -6,9 +6,7 @@
#include <float.h>
#include <limits.h>
#include <common.h>
#include <fctsys.h>
#include <PolyLine.h>
#include <math_for_graphics.h>
static bool InRange( double x, double xi, double xf );