Attempt to fix nullptr error when looking up units scale in pl_editor.

(I can't be sure if this works or not because my M1 build won't launch
pl_editor for some reason.)

Fixes https://gitlab.com/kicad/code/kicad/issues/12717
This commit is contained in:
Jeff Young 2022-10-22 14:07:10 +01:00
parent 96fed676a3
commit 38c863c3f4
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@
// The layout shape used in the application
// It is accessible by DS_DATA_MODEL::GetTheInstance()
static DS_DATA_MODEL wksTheInstance;
static DS_DATA_MODEL* wksAltInstance;
static DS_DATA_MODEL* wksAltInstance = nullptr;
DS_DATA_MODEL::DS_DATA_MODEL() :
m_WSunits2Iu( 1000.0 ),