QA test: fix a wx assert about Locale when running qa_python tests.

Probably happens only when the system locale uses a comma as fp separator.
This commit is contained in:
jean-pierre charras 2021-07-23 11:28:02 +02:00
parent 04b9b15255
commit 31d2b2df8b
1 changed files with 4 additions and 0 deletions

View File

@ -98,6 +98,10 @@ SETTINGS_MANAGER* GetSettingsManager()
PROJECT* GetDefaultProject()
{
// For some reasons, LoadProject() needs a C locale, so ensure we have the right locale
// This is mainly when running QA Python tests
LOCALE_IO dummy;
PROJECT* project = GetSettingsManager()->GetProject( "" );
if( !project )