Cleanup redundant if statement
This commit is contained in:
parent
2edcf42115
commit
b05bf34b77
|
@ -685,24 +685,21 @@ void LIB_PIN::PlotPinTexts( PLOTTER* aPlotter, wxPoint& aPinPos, int aPinOrient,
|
||||||
{
|
{
|
||||||
if( aDrawPinName )
|
if( aDrawPinName )
|
||||||
{
|
{
|
||||||
|
EDA_TEXT_HJUSTIFY_T hjustify;
|
||||||
if( aPinOrient == PIN_RIGHT )
|
if( aPinOrient == PIN_RIGHT )
|
||||||
{
|
{
|
||||||
x = x1 + aTextInside;
|
x = x1 + aTextInside;
|
||||||
aPlotter->Text( wxPoint( x, y1 ), nameColor, m_name, TEXT_ANGLE_HORIZ,
|
hjustify = GR_TEXT_HJUSTIFY_LEFT;
|
||||||
pinNameSize, GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
|
||||||
namePenWidth, false, false );
|
|
||||||
}
|
}
|
||||||
else // orient == PIN_LEFT
|
else // orient == PIN_LEFT
|
||||||
{
|
{
|
||||||
x = x1 - aTextInside;
|
x = x1 - aTextInside;
|
||||||
|
hjustify = GR_TEXT_HJUSTIFY_RIGHT;
|
||||||
if( aDrawPinName )
|
|
||||||
{
|
|
||||||
aPlotter->Text( wxPoint( x, y1 ), nameColor, m_name, TEXT_ANGLE_HORIZ,
|
|
||||||
pinNameSize, GR_TEXT_HJUSTIFY_RIGHT,
|
|
||||||
GR_TEXT_VJUSTIFY_CENTER, namePenWidth, false, false );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
aPlotter->Text( wxPoint( x, y1 ), nameColor, m_name, TEXT_ANGLE_HORIZ, pinNameSize,
|
||||||
|
hjustify, GR_TEXT_VJUSTIFY_CENTER, namePenWidth,
|
||||||
|
false, false );
|
||||||
}
|
}
|
||||||
if( aDrawPinNum )
|
if( aDrawPinNum )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue