From f6b78170449a5ca8fb8a287d2a562352212bac29 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 25 Jan 2021 10:34:35 +0000 Subject: [PATCH] Init intersheet refs props when converting to global label. Fixes https://gitlab.com/kicad/code/kicad/issues/7252 --- eeschema/tools/sch_edit_tool.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eeschema/tools/sch_edit_tool.cpp b/eeschema/tools/sch_edit_tool.cpp index d6b287e487..ea4613950b 100644 --- a/eeschema/tools/sch_edit_tool.cpp +++ b/eeschema/tools/sch_edit_tool.cpp @@ -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( newtext )->UpdateIntersheetRefProps(); } if( selected )