Ugly hack to avoid crash on msys2 when running Pcbnew after running Eeschema+its Python console
The main bug still exists, but at least Kicad does not crash.
This commit is contained in:
@@ -93,6 +93,13 @@ PGM_BASE& Pgm()
|
||||
wxASSERT( process ); // KIFACE_GETTER has already been called.
|
||||
return *process;
|
||||
}
|
||||
|
||||
|
||||
// Similar to PGM_BASE& Pgm(), but return nullptr when a *.ki_face is run from a python script.
|
||||
PGM_BASE* PgmOrNull()
|
||||
{
|
||||
return process;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user