From d0f498dd1020dca1550a5eaa07e4b1413b170999 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 5 Oct 2019 14:03:02 +0200 Subject: [PATCH] Fix missing function in qa_utils --- qa/qa_utils/mocks.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qa/qa_utils/mocks.cpp b/qa/qa_utils/mocks.cpp index 5538ecda3d..b972bbeb0b 100644 --- a/qa/qa_utils/mocks.cpp +++ b/qa/qa_utils/mocks.cpp @@ -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() { 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 ) { // these members are initialized to avoid warnings about non initialized vars