From 2b0f789b858a815de67789db7c9c571e19a6f478 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 10 Feb 2018 20:47:19 +0000 Subject: [PATCH] Treat %R and %V texts like Reference and Value for plotting. Fixes: lp:1677321 * https://bugs.launchpad.net/kicad/+bug/1677321 --- pcbnew/plot_brditems_plotter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pcbnew/plot_brditems_plotter.cpp b/pcbnew/plot_brditems_plotter.cpp index 30aae84381..8522a9e0d0 100644 --- a/pcbnew/plot_brditems_plotter.cpp +++ b/pcbnew/plot_brditems_plotter.cpp @@ -267,6 +267,12 @@ bool BRDITEMS_PLOTTER::PlotAllTextsModule( MODULE* aModule ) if( !m_layerMask[textLayer] ) continue; + if( textModule->GetText() == wxT( "%R" ) && !trace_ref ) + continue; + + if( textModule->GetText() == wxT( "%V" ) && !trace_val ) + continue; + PlotTextModule( textModule, getColor( textLayer ) ); }