7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 19:13:44 +00:00

BRDITEMS_PLOTTER::PlotFootprintTextItems(): fix a typo about Value layer.

The typo was using the reference layer to plot the value field

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20144
This commit is contained in:
jean-pierre charras 2025-02-28 09:42:07 +01:00
parent e202b00a74
commit 75bed91789

View File

@ -372,7 +372,7 @@ void BRDITEMS_PLOTTER::PlotFootprintTextItems( const FOOTPRINT* aFootprint )
}
const PCB_TEXT* value = &aFootprint->Value();
PCB_LAYER_ID valueLayer = reference->GetLayer();
PCB_LAYER_ID valueLayer = value->GetLayer();
if( GetPlotValue()
&& m_layerMask[valueLayer]