Re-add PGInit call

This commit is contained in:
Seth Hillbrand 2022-12-03 20:39:42 -08:00
parent 9f551bfbf8
commit 234cda4197
1 changed files with 4 additions and 0 deletions

View File

@ -417,6 +417,10 @@ bool PGM_BASE::InitPgm( bool aHeadless, bool aSkipPyInit, bool aIsUnitTest )
wxInitAllImageHandlers(); wxInitAllImageHandlers();
// Without this the wxPropertyGridManager segfaults on Windows.
if( !wxPGGlobalVars )
wxPGInitResourceModule();
#ifndef __WINDOWS__ #ifndef __WINDOWS__
if( wxString( wxGetenv( "HOME" ) ).IsEmpty() ) if( wxString( wxGetenv( "HOME" ) ).IsEmpty() )
{ {