From 75bed91789d99ebbe55d66c1ec21dbf2b3149ad8 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 28 Feb 2025 09:42:07 +0100 Subject: [PATCH] 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 --- pcbnew/plot_brditems_plotter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/plot_brditems_plotter.cpp b/pcbnew/plot_brditems_plotter.cpp index 634dbb40ad..1060aa174a 100644 --- a/pcbnew/plot_brditems_plotter.cpp +++ b/pcbnew/plot_brditems_plotter.cpp @@ -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]