diff --git a/eeschema/sch_base_frame.h b/eeschema/sch_base_frame.h index 5edf3ced8c..b6ffaf930b 100644 --- a/eeschema/sch_base_frame.h +++ b/eeschema/sch_base_frame.h @@ -256,8 +256,6 @@ public: virtual void CenterScreen( const wxPoint& aCenterPoint, bool aWarpPointer ); - void FocusOnItem( SCH_ITEM* aItem ); - void HardRedraw() override; /** diff --git a/pcbnew/dialogs/dialog_drc.cpp b/pcbnew/dialogs/dialog_drc.cpp index 8d3da23360..7e4488504f 100644 --- a/pcbnew/dialogs/dialog_drc.cpp +++ b/pcbnew/dialogs/dialog_drc.cpp @@ -372,11 +372,15 @@ void DIALOG_DRC::OnDRCItemRClick( wxDataViewEvent& aEvent ) bds().m_DRCSeverities[ rcItem->GetErrorCode() ] = RPT_SEVERITY_IGNORE; std::vector& markers = m_brdEditor->GetBoard()->Markers(); + KIGFX::VIEW* view = m_parentFrame->GetToolManager()->GetView(); for( unsigned i = 0; i < markers.size(); ) { if( markers[i]->GetRCItem()->GetErrorCode() == rcItem->GetErrorCode() ) + { + view->Remove( markers.at( i ) ); markers.erase( markers.begin() + i ); + } else ++i; }