Commit bad6cdaa authored by Maciej Suminski's avatar Maciej Suminski

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

parent 1ef68d73
...@@ -87,11 +87,13 @@ public: ...@@ -87,11 +87,13 @@ public:
virtual void SetPosition( const wxPoint& aPos ) virtual void SetPosition( const wxPoint& aPos )
{ {
m_Pos = aPos; m_Pos = aPos;
SetLocalCoord();
} }
void Move( const wxPoint& aMoveVector ) void Move( const wxPoint& aMoveVector )
{ {
m_Pos += aMoveVector; m_Pos += aMoveVector;
SetLocalCoord();
} }
void Rotate( const wxPoint& aRotCentre, double aAngle ); void Rotate( const wxPoint& aRotCentre, double aAngle );
...@@ -110,7 +112,7 @@ public: ...@@ -110,7 +112,7 @@ public:
void SetVisible( bool isVisible ) { m_NoShow = !isVisible; } void SetVisible( bool isVisible ) { m_NoShow = !isVisible; }
bool IsVisible() const { return !m_NoShow; } 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; } const wxPoint& GetPos0() const { return m_Pos0; }
void Copy( TEXTE_MODULE* source ); // copy structure void Copy( TEXTE_MODULE* source ); // copy structure
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment