Remove unused variable
item is already an SCH_ITEM, so the static cast is pointless.
This commit is contained in:
parent
1db5e2bc96
commit
bb95761642
|
@ -1130,8 +1130,6 @@ int SCH_DRAWING_TOOLS::TwoClickPlace( const TOOL_EVENT& aEvent )
|
||||||
}
|
}
|
||||||
else if( item && ( evt->IsAction( &ACTIONS::refreshPreview ) || evt->IsMotion() ) )
|
else if( item && ( evt->IsAction( &ACTIONS::refreshPreview ) || evt->IsMotion() ) )
|
||||||
{
|
{
|
||||||
SCH_ITEM* sch_item = static_cast<SCH_ITEM*>( item );
|
|
||||||
|
|
||||||
item->SetPosition( (wxPoint) cursorPos );
|
item->SetPosition( (wxPoint) cursorPos );
|
||||||
item->AutoplaceFields( /* aScreen */ nullptr, /* aManual */ false );
|
item->AutoplaceFields( /* aScreen */ nullptr, /* aManual */ false );
|
||||||
updatePreview();
|
updatePreview();
|
||||||
|
|
Loading…
Reference in New Issue