Make sure intersheetRef bounding boxes get updated in RTree.
Fixes https://gitlab.com/kicad/code/kicad/issues/9177
This commit is contained in:
parent
b931883876
commit
a291cae2fd
|
@ -1369,12 +1369,16 @@ void SCH_EDIT_FRAME::RecomputeIntersheetRefs()
|
||||||
/* Refresh all global labels */
|
/* Refresh all global labels */
|
||||||
for( EDA_ITEM* item : GetScreen()->Items().OfType( SCH_GLOBAL_LABEL_T ) )
|
for( EDA_ITEM* item : GetScreen()->Items().OfType( SCH_GLOBAL_LABEL_T ) )
|
||||||
{
|
{
|
||||||
SCH_GLOBALLABEL* global = static_cast<SCH_GLOBALLABEL*>( item );
|
SCH_GLOBALLABEL* gLabel = (SCH_GLOBALLABEL*)( item );
|
||||||
|
SCH_FIELD* intersheetRef = gLabel->GetIntersheetRefs();
|
||||||
|
|
||||||
global->GetIntersheetRefs()->SetVisible( show );
|
intersheetRef->SetVisible( show );
|
||||||
|
|
||||||
if( show )
|
if( show )
|
||||||
GetCanvas()->GetView()->Update( global );
|
{
|
||||||
|
GetScreen()->Update( gLabel );
|
||||||
|
GetCanvas()->GetView()->Update( gLabel );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue