Assign font if null

Fixes https://gitlab.com/kicad/code/kicad/issues/10370
This commit is contained in:
Seth Hillbrand 2022-01-11 11:05:16 -08:00
parent 062f5e3177
commit 7ef8843545
1 changed files with 3 additions and 0 deletions

View File

@ -706,5 +706,8 @@ void PLOTTER::Text( const VECTOR2I& aPos,
attributes.m_Halign = aH_justify;
attributes.m_Valign = aV_justify;
if( !aFont )
aFont = KIFONT::FONT::GetFont();
aFont->Draw( &callback_gal, aText, aPos, attributes );
}