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:
parent
a24a63e416
commit
18cebe3779
|
@ -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 ) );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue