Kicad manager: fix a potential bug which could crash Kicad manager. math_for_graphics.cpp: remove useless includes.
This commit is contained in:
parent
2e04d4d621
commit
c80d92e927
|
@ -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() )
|
||||
{
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue