Fix bug #1480619 (Moving silkscreen reference of rotated footprints glitches in GAL)
This commit is contained in:
parent
0cff6444e0
commit
9f61254839
|
@ -111,6 +111,7 @@ void TEXTE_MODULE::Mirror( const wxPoint& aCentre, bool aMirrorAroundXAxis )
|
||||||
MIRROR( m_Pos.y, aCentre.y );
|
MIRROR( m_Pos.y, aCentre.y );
|
||||||
else
|
else
|
||||||
MIRROR( m_Pos.x, aCentre.x );
|
MIRROR( m_Pos.x, aCentre.x );
|
||||||
|
|
||||||
NEGATE_AND_NORMALIZE_ANGLE_POS( m_Orient );
|
NEGATE_AND_NORMALIZE_ANGLE_POS( m_Orient );
|
||||||
SetLocalCoord();
|
SetLocalCoord();
|
||||||
}
|
}
|
||||||
|
@ -118,9 +119,8 @@ void TEXTE_MODULE::Mirror( const wxPoint& aCentre, bool aMirrorAroundXAxis )
|
||||||
|
|
||||||
void TEXTE_MODULE::Move( const wxPoint& aMoveVector )
|
void TEXTE_MODULE::Move( const wxPoint& aMoveVector )
|
||||||
{
|
{
|
||||||
// Used in modedit, to transform the footprint
|
m_Pos += aMoveVector;
|
||||||
m_Pos0 += aMoveVector;
|
SetLocalCoord();
|
||||||
SetDrawCoord();;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TEXTE_MODULE::Copy( TEXTE_MODULE* source )
|
void TEXTE_MODULE::Copy( TEXTE_MODULE* source )
|
||||||
|
@ -282,8 +282,7 @@ void TEXTE_MODULE::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE draw_mode,
|
||||||
width = -width;
|
width = -width;
|
||||||
|
|
||||||
GRSetDrawMode( DC, draw_mode );
|
GRSetDrawMode( DC, draw_mode );
|
||||||
wxPoint pos( m_Pos.x - offset.x,
|
wxPoint pos = m_Pos - offset;
|
||||||
m_Pos.y - offset.y);
|
|
||||||
|
|
||||||
// Draw the text anchor point
|
// Draw the text anchor point
|
||||||
if( brd->IsElementVisible( ANCHOR_VISIBLE ) )
|
if( brd->IsElementVisible( ANCHOR_VISIBLE ) )
|
||||||
|
|
Loading…
Reference in New Issue