From 9954484dfd80d481fef81e638caa40cf7548d5c6 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 1 May 2020 18:48:36 +0100 Subject: [PATCH] Don't show source in violation "name". --- pcbnew/drc/drc_clearance_test_functions.cpp | 6 ++++++ pcbnew/drc/drc_item.cpp | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pcbnew/drc/drc_clearance_test_functions.cpp b/pcbnew/drc/drc_clearance_test_functions.cpp index 9b0a0be1bd..6186cdbd3f 100644 --- a/pcbnew/drc/drc_clearance_test_functions.cpp +++ b/pcbnew/drc/drc_clearance_test_functions.cpp @@ -244,6 +244,9 @@ void DRC::doTrackDrc( TRACK* aRefSeg, TRACKS::iterator aStartIt, TRACKS::iterato if( refvia->GetViaType() == VIATYPE::MICROVIA && !dsnSettings.m_MicroViasAllowed ) { DRC_ITEM* drcItem = new DRC_ITEM( DRCE_MICRO_VIA_NOT_ALLOWED ); + + msg.Printf( drcItem->GetErrorText() + _( " (board design rule constraints)" ); + drcItem->SetErrorMessage( msg ); drcItem->SetItems( refvia ); MARKER_PCB* marker = new MARKER_PCB( drcItem, refvia->GetPosition() ); @@ -254,6 +257,9 @@ void DRC::doTrackDrc( TRACK* aRefSeg, TRACKS::iterator aStartIt, TRACKS::iterato if( refvia->GetViaType() == VIATYPE::BLIND_BURIED && !dsnSettings.m_BlindBuriedViaAllowed ) { DRC_ITEM* drcItem = new DRC_ITEM( DRCE_BURIED_VIA_NOT_ALLOWED ); + + msg.Printf( drcItem->GetErrorText() + _( " (board design rule constraints)" ); + drcItem->SetErrorMessage( msg ); drcItem->SetItems( refvia ); MARKER_PCB* marker = new MARKER_PCB( drcItem, refvia->GetPosition() ); diff --git a/pcbnew/drc/drc_item.cpp b/pcbnew/drc/drc_item.cpp index 086a16f966..d48a5dd9fd 100644 --- a/pcbnew/drc/drc_item.cpp +++ b/pcbnew/drc/drc_item.cpp @@ -66,9 +66,9 @@ wxString DRC_ITEM::GetErrorText( int aCode ) const case DRCE_MICRO_VIA_INCORRECT_LAYER_PAIR: return wxString( _( "Micro Via: incorrect layer pairs" ) ); case DRCE_MICRO_VIA_NOT_ALLOWED: - return wxString( _( "Micro Via: not allowed (board design rule constraints)" ) ); + return wxString( _( "Micro Via: not allowed" ) ); case DRCE_BURIED_VIA_NOT_ALLOWED: - return wxString( _( "Buried Via: not allowed (board design rule constraints)" ) ); + return wxString( _( "Buried Via: not allowed" ) ); case DRCE_DISABLED_LAYER_ITEM: return wxString( _( "Item on a disabled layer" ) ); case DRCE_ZONES_INTERSECT: