From 2efd31ef035d963a6d20af23783d68b7649223a9 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 26 Mar 2016 10:08:09 +0100 Subject: [PATCH] Fix a stupid bug I introduced in rev 6649 (eeschema: incorrect position of free texts in components) --- common/eda_text.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/eda_text.cpp b/common/eda_text.cpp index f6c3c52635..455568cc87 100644 --- a/common/eda_text.cpp +++ b/common/eda_text.cpp @@ -168,12 +168,12 @@ EDA_RECT EDA_TEXT::GetTextBox( int aLine, int aThickness, bool aInvertY ) const // Creates bounding box (rectangle) for an horizontal // 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 ); wxPoint pos = m_Pos; if( aInvertY ) - pos.x = -pos.y; + pos.y = -pos.y; rect.SetOrigin( pos );