Fix polygon shape move
Move vector should not affect start/end points as they are assumed to
always be 0,0. Polygon is defined by outline only.
(cherry-picked from 32674ef360
)
This commit is contained in:
parent
ac39e32bc9
commit
798e4c288a
|
@ -78,9 +78,14 @@ const wxPoint DRAWSEGMENT::GetPosition() const
|
||||||
}
|
}
|
||||||
|
|
||||||
void DRAWSEGMENT::Move( const wxPoint& aMoveVector )
|
void DRAWSEGMENT::Move( const wxPoint& aMoveVector )
|
||||||
|
{
|
||||||
|
// Move vector should not affect start/end for polygon since it will
|
||||||
|
// be applied directly to polygon outline.
|
||||||
|
if( m_Shape != S_POLYGON )
|
||||||
{
|
{
|
||||||
m_Start += aMoveVector;
|
m_Start += aMoveVector;
|
||||||
m_End += aMoveVector;
|
m_End += aMoveVector;
|
||||||
|
}
|
||||||
|
|
||||||
switch ( m_Shape )
|
switch ( m_Shape )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue