SCH_TEXT::SwapData() was not swapping m_shape, causing abandoned drag to distort pinsheet.

Fixes: lp:1659683
* https://bugs.launchpad.net/kicad/+bug/1659683
This commit is contained in:
Dick Hollenbeck 2017-01-27 15:06:18 -06:00 committed by Chris Pavlina
parent 39317eac83
commit d0c46a81d9
2 changed files with 3 additions and 3 deletions

View File

@ -123,8 +123,7 @@ SCH_TEXT::SCH_TEXT( const SCH_TEXT& aText ) :
{
m_shape = aText.m_shape;
m_isDangling = false;
SetLabelSpinStyle( aText.GetLabelSpinStyle() );
m_spin_style = aText.m_spin_style;
}
@ -314,6 +313,8 @@ void SCH_TEXT::SwapData( SCH_ITEM* aItem )
std::swap( m_Text, item->m_Text );
std::swap( m_Layer, item->m_Layer );
std::swap( m_shape, item->m_shape );
std::swap( m_isDangling, item->m_isDangling );
std::swap( m_spin_style, item->m_spin_style );

View File

@ -590,7 +590,6 @@ void SCH_EDIT_FRAME::SetUndoItem( const SCH_ITEM* aItem )
if( aItem )
m_undoItem = (SCH_ITEM*) aItem->Clone();
}