From 7ef88435453caac0a939297e9395b9c5f2dc2980 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 11 Jan 2022 11:05:16 -0800 Subject: [PATCH] Assign font if null Fixes https://gitlab.com/kicad/code/kicad/issues/10370 --- common/plotters/plotter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/plotters/plotter.cpp b/common/plotters/plotter.cpp index 81f0a78321..623e84d152 100644 --- a/common/plotters/plotter.cpp +++ b/common/plotters/plotter.cpp @@ -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 ); }