From 6d817806afb9979de8e44993028140c1f25ec29e Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 10 Feb 2018 20:47:19 +0000 Subject: [PATCH 6/6] Treat %R and %V texts like Reference and Value for plotting. MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.14.3 (Apple Git-98)" This is a multi-part message in MIME format. --------------2.14.3 (Apple Git-98) Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit Fixes: lp:1677321 * https://bugs.launchpad.net/kicad/+bug/1677321 --- pcbnew/plot_brditems_plotter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) --------------2.14.3 (Apple Git-98) Content-Type: text/x-patch; name="0006-Treat-R-and-V-texts-like-Reference-and-Value-for-plo.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0006-Treat-R-and-V-texts-like-Reference-and-Value-for-plo.patch" diff --git a/pcbnew/plot_brditems_plotter.cpp b/pcbnew/plot_brditems_plotter.cpp index 30aae8438..8522a9e0d 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 ) ); } --------------2.14.3 (Apple Git-98)--