Fix missing function in qa_utils

This commit is contained in:
jean-pierre charras 2019-10-05 14:03:02 +02:00
parent 4646bc0eef
commit d0f498dd10
1 changed files with 8 additions and 1 deletions

View File

@ -125,6 +125,14 @@ PGM_BASE& Pgm()
} }
// Similar to PGM_BASE& Pgm(), but return nullptr when a *.ki_face
// is run from a python script, mot from a Kicad application
PGM_BASE* PgmOrNull()
{
return &program;
}
KIFACE_I& Kiface() KIFACE_I& Kiface()
{ {
return kiface; return kiface;
@ -138,7 +146,6 @@ void BOARD::Print( PCB_BASE_FRAME* aFrame, wxDC* DC, const wxPoint& offset )
} }
DIALOG_FIND::DIALOG_FIND( PCB_BASE_FRAME* aParent ) : DIALOG_FIND_BASE( aParent ) DIALOG_FIND::DIALOG_FIND( PCB_BASE_FRAME* aParent ) : DIALOG_FIND_BASE( aParent )
{ {
// these members are initialized to avoid warnings about non initialized vars // these members are initialized to avoid warnings about non initialized vars