Assign font if null
Fixes https://gitlab.com/kicad/code/kicad/issues/10370
This commit is contained in:
parent
062f5e3177
commit
7ef8843545
|
@ -706,5 +706,8 @@ void PLOTTER::Text( const VECTOR2I& aPos,
|
||||||
attributes.m_Halign = aH_justify;
|
attributes.m_Halign = aH_justify;
|
||||||
attributes.m_Valign = aV_justify;
|
attributes.m_Valign = aV_justify;
|
||||||
|
|
||||||
|
if( !aFont )
|
||||||
|
aFont = KIFONT::FONT::GetFont();
|
||||||
|
|
||||||
aFont->Draw( &callback_gal, aText, aPos, attributes );
|
aFont->Draw( &callback_gal, aText, aPos, attributes );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue