Don't assume an EDA_ITEM is a SCH_ITEM. v2

In the same way as cec4109176 did

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/14528
This commit is contained in:
aris-kimi 2023-04-13 01:00:38 +03:00 committed by Jeff Young
parent a24a63e416
commit 18cebe3779
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ protected:
default:
getView()->Update( aItem );
if( aUpdateRTree )
if( aUpdateRTree && dynamic_cast<SCH_ITEM*>( aItem ) )
m_frame->GetScreen()->Update( static_cast<SCH_ITEM*>( aItem ) );
}
}