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:
jean-pierre charras
2021-08-14 21:08:56 +02:00
parent aae0e7e121
commit 8ac5e318fb
2 changed files with 23 additions and 9 deletions
+7
View File
@@ -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