Browse Source

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
newinvert
aris-kimi 3 years ago
committed by Jeff Young
parent
commit
18cebe3779
  1. 2
      eeschema/tools/ee_tool_base.h

2
eeschema/tools/ee_tool_base.h

@ -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…
Cancel
Save