From 10cd4582f2f3e20cddf1d266998e751dce9ab2ec Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 9 Dec 2024 15:59:55 +0100 Subject: [PATCH] Pcbnew, plot: plot table only on the right layer. Fixes https://gitlab.com/kicad/code/kicad/-/issues/19272 --- pcbnew/plot_brditems_plotter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/plot_brditems_plotter.cpp b/pcbnew/plot_brditems_plotter.cpp index b3f60a3e58..af3edf8253 100644 --- a/pcbnew/plot_brditems_plotter.cpp +++ b/pcbnew/plot_brditems_plotter.cpp @@ -1073,6 +1073,9 @@ void BRDITEMS_PLOTTER::PlotShape( const PCB_SHAPE* aShape ) void BRDITEMS_PLOTTER::PlotTableBorders( const PCB_TABLE* aTable ) { + if( !m_layerMask[aTable->GetLayer()] ) + return; + VECTOR2I pos = aTable->GetPosition(); VECTOR2I end = aTable->GetEnd(); int lineWidth;