Update shown text cache in undo/redo.

Fixes: lp:1837772
* https://bugs.launchpad.net/kicad/+bug/1837772
This commit is contained in:
Jeff Young 2019-07-26 23:58:40 -06:00
parent 4e40534d21
commit daac54b5d2
1 changed files with 1 additions and 0 deletions

View File

@ -275,6 +275,7 @@ void SCH_TEXT::SwapData( SCH_ITEM* aItem )
SCH_TEXT* item = (SCH_TEXT*) aItem;
std::swap( m_Text, item->m_Text );
std::swap( m_shown_text, item->m_shown_text );
std::swap( m_Layer, item->m_Layer );
std::swap( m_shape, item->m_shape );