diff --git a/pcbnew/tools/board_inspection_tool.cpp b/pcbnew/tools/board_inspection_tool.cpp index a3b3491d23..f3da5547b9 100644 --- a/pcbnew/tools/board_inspection_tool.cpp +++ b/pcbnew/tools/board_inspection_tool.cpp @@ -286,9 +286,10 @@ void BOARD_INSPECTION_TOOL::InspectDRCError( const std::shared_ptr& aDR } DIALOG_BOOK_REPORTER* dialog = m_frame->GetInspectDrcErrorDialog(); - wxCHECK( dialog, /* void */ ); + dialog->DeleteAllPages(); + WX_HTML_REPORT_BOX* r = nullptr; bool compileError = false; DRC_ENGINE drcEngine = makeDRCEngine( &compileError ); @@ -544,7 +545,7 @@ void BOARD_INSPECTION_TOOL::InspectDRCError( const std::shared_ptr& aDR } else { - constraint = drcEngine.EvalRules( CLEARANCE_CONSTRAINT, a, a, layer, r ); + constraint = drcEngine.EvalRules( CLEARANCE_CONSTRAINT, a, b, layer, r ); clearance = constraint.m_Value.Min(); clearanceStr = m_frame->StringFromValue( clearance, true );