From bad6cdaa06fe4962bf1a77cf6b9fa9df827e0c7f Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 4 Apr 2014 09:01:17 +0200 Subject: [PATCH] TEXTE_MODULE relative position is updated when absolute position is changed (and viceversa). --- pcbnew/class_text_mod.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcbnew/class_text_mod.h b/pcbnew/class_text_mod.h index 97e15ab202..5917759cd0 100644 --- a/pcbnew/class_text_mod.h +++ b/pcbnew/class_text_mod.h @@ -87,11 +87,13 @@ public: virtual void SetPosition( const wxPoint& aPos ) { m_Pos = aPos; + SetLocalCoord(); } void Move( const wxPoint& aMoveVector ) { m_Pos += aMoveVector; + SetLocalCoord(); } void Rotate( const wxPoint& aRotCentre, double aAngle ); @@ -110,7 +112,7 @@ public: void SetVisible( bool isVisible ) { m_NoShow = !isVisible; } bool IsVisible() const { return !m_NoShow; } - void SetPos0( const wxPoint& aPos ) { m_Pos0 = aPos; } + void SetPos0( const wxPoint& aPos ) { m_Pos0 = aPos; SetDrawCoord(); } const wxPoint& GetPos0() const { return m_Pos0; } void Copy( TEXTE_MODULE* source ); // copy structure