TEXTE_MODULE relative position is updated when absolute position is changed (and viceversa).

This commit is contained in:
Maciej Suminski 2014-04-04 09:01:17 +02:00
parent 1ef68d73e5
commit bad6cdaa06
1 changed files with 3 additions and 1 deletions

View File

@ -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