Fix a stupid bug I introduced in rev 6649 (eeschema: incorrect position of free texts in components)

This commit is contained in:
jean-pierre charras 2016-03-26 10:08:09 +01:00
parent a526984d9e
commit 2efd31ef03
1 changed files with 2 additions and 2 deletions

View File

@ -168,12 +168,12 @@ EDA_RECT EDA_TEXT::GetTextBox( int aLine, int aThickness, bool aInvertY ) const
// Creates bounding box (rectangle) for an horizontal // Creates bounding box (rectangle) for an horizontal
// and left and top justified text. the bounding box will be moved later // and left and top justified text. the bounding box will be moved later
// according to the catual text options // according to the actual text options
wxSize textsize = wxSize( dx, dy ); wxSize textsize = wxSize( dx, dy );
wxPoint pos = m_Pos; wxPoint pos = m_Pos;
if( aInvertY ) if( aInvertY )
pos.x = -pos.y; pos.y = -pos.y;
rect.SetOrigin( pos ); rect.SetOrigin( pos );