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; }