Init intersheet refs props when converting to global label.

Fixes https://gitlab.com/kicad/code/kicad/issues/7252
This commit is contained in:
Jeff Young 2021-01-25 10:34:35 +00:00
parent 09eb4b35c6
commit f6b7817044
1 changed files with 3 additions and 0 deletions

View File

@ -1634,6 +1634,9 @@ int SCH_EDIT_TOOL::ChangeTextType( const TOOL_EVENT& aEvent )
m_frame->RemoveFromScreen( text, m_frame->GetScreen() );
m_frame->AddToScreen( newtext, m_frame->GetScreen() );
if( convertTo == SCH_GLOBAL_LABEL_T )
static_cast<SCH_GLOBALLABEL*>( newtext )->UpdateIntersheetRefProps();
}
if( selected )