Fix typo in arguments list to EvalRules().
Also fixes a bug where we weren't clearing the previous tabs from the notebook.
This commit is contained in:
parent
a347aa7647
commit
31e30a5f56
|
@ -286,9 +286,10 @@ void BOARD_INSPECTION_TOOL::InspectDRCError( const std::shared_ptr<RC_ITEM>& 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<RC_ITEM>& 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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue