Browse Source

Mirror pad numbers when appropriate.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20459
revert-0c36e162
Jeff Young 8 months ago
parent
commit
151cb01795
  1. 3
      include/plotters/plotter.h
  2. 2
      pcbnew/plot_brditems_plotter.cpp

3
include/plotters/plotter.h

@ -138,6 +138,9 @@ public:
virtual void SetPageSettings( const PAGE_INFO& aPageSettings ) { m_pageInfo = aPageSettings; } virtual void SetPageSettings( const PAGE_INFO& aPageSettings ) { m_pageInfo = aPageSettings; }
PAGE_INFO& PageSettings() { return m_pageInfo; } PAGE_INFO& PageSettings() { return m_pageInfo; }
void SetPlotMirrored( bool aMirror ) { m_plotMirror = aMirror; };
bool GetPlotMirrored() const { return m_plotMirror; }
/** /**
* Set the line width for the next drawing. * Set the line width for the next drawing.
* *

2
pcbnew/plot_brditems_plotter.cpp

@ -121,6 +121,8 @@ void BRDITEMS_PLOTTER::PlotPadNumber( const PAD* aPad, const COLOR4D& aColor )
TEXT_ATTRIBUTES textAttrs; TEXT_ATTRIBUTES textAttrs;
textAttrs.m_Mirrored = m_plotter->GetPlotMirrored();
if( padsize.x < ( padsize.y * 0.95 ) ) if( padsize.x < ( padsize.y * 0.95 ) )
{ {
textAttrs.m_Angle = ANGLE_90; textAttrs.m_Angle = ANGLE_90;

Loading…
Cancel
Save