From a4ffb065d4f5c2b27e5febc19b8bc19f22abebb6 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 7 Aug 2015 18:17:51 +0200 Subject: [PATCH] Corrected TEXTE_MODULE:GetBoundingBox() function. --- common/base_struct.cpp | 1 - pcbnew/class_text_mod.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/common/base_struct.cpp b/common/base_struct.cpp index 2ee9f90dfa..9b6273d2c0 100644 --- a/common/base_struct.cpp +++ b/common/base_struct.cpp @@ -546,7 +546,6 @@ EDA_RECT EDA_RECT::Common( const EDA_RECT& aRect ) const wxPoint endB( std::max( aRect.GetOrigin().x, aRect.GetEnd().x ), std::max( aRect.GetOrigin().y, aRect.GetEnd().y ) ); - r.SetOrigin( wxPoint( std::max( originA.x, originB.x ), std::max( originA.y, originB.y ) ) ); r.SetEnd ( wxPoint( std::min( endA.x, endB.x ), std::min( endA.y, endB.y ) ) ); } diff --git a/pcbnew/class_text_mod.cpp b/pcbnew/class_text_mod.cpp index 10a3927bb1..a51963f1c1 100644 --- a/pcbnew/class_text_mod.cpp +++ b/pcbnew/class_text_mod.cpp @@ -212,7 +212,7 @@ const EDA_RECT TEXTE_MODULE::GetBoundingBox() const EDA_RECT text_area = GetTextBox( -1, -1 ); if( angle ) - text_area = text_area.GetBoundingBoxRotated( m_Pos, m_Orient ); + text_area = text_area.GetBoundingBoxRotated( m_Pos, angle ); return text_area; }