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:
parent
39317eac83
commit
d0c46a81d9
|
@ -123,8 +123,7 @@ SCH_TEXT::SCH_TEXT( const SCH_TEXT& aText ) :
|
||||||
{
|
{
|
||||||
m_shape = aText.m_shape;
|
m_shape = aText.m_shape;
|
||||||
m_isDangling = false;
|
m_isDangling = false;
|
||||||
|
m_spin_style = aText.m_spin_style;
|
||||||
SetLabelSpinStyle( aText.GetLabelSpinStyle() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -314,6 +313,8 @@ void SCH_TEXT::SwapData( SCH_ITEM* aItem )
|
||||||
|
|
||||||
std::swap( m_Text, item->m_Text );
|
std::swap( m_Text, item->m_Text );
|
||||||
std::swap( m_Layer, item->m_Layer );
|
std::swap( m_Layer, item->m_Layer );
|
||||||
|
|
||||||
|
std::swap( m_shape, item->m_shape );
|
||||||
std::swap( m_isDangling, item->m_isDangling );
|
std::swap( m_isDangling, item->m_isDangling );
|
||||||
std::swap( m_spin_style, item->m_spin_style );
|
std::swap( m_spin_style, item->m_spin_style );
|
||||||
|
|
||||||
|
|
|
@ -590,7 +590,6 @@ void SCH_EDIT_FRAME::SetUndoItem( const SCH_ITEM* aItem )
|
||||||
|
|
||||||
if( aItem )
|
if( aItem )
|
||||||
m_undoItem = (SCH_ITEM*) aItem->Clone();
|
m_undoItem = (SCH_ITEM*) aItem->Clone();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue