From 2edd246f363afe98aa8b8be3ff2706eaa8fac302 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sun, 25 Oct 2020 18:30:22 -0400 Subject: [PATCH] Use explicit message for multiple drivers ERC Fixes https://gitlab.com/kicad/code/kicad/-/issues/3980 --- eeschema/connection_graph.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/eeschema/connection_graph.cpp b/eeschema/connection_graph.cpp index 0d34bf9d17..ddb7260a56 100644 --- a/eeschema/connection_graph.cpp +++ b/eeschema/connection_graph.cpp @@ -203,8 +203,15 @@ bool CONNECTION_SUBGRAPH::ResolveDrivers( bool aCreateMarkers ) static_cast( candidates[0] )->GetTransformedPosition() : candidates[0]->GetPosition(); + wxString msg = wxString::Format( _( "Both %s and %s are attached to the same " + "items; %s will be used in the netlist" ), + first, + GetNameForDriver( second_item ), + first ); + std::shared_ptr ercItem = ERC_ITEM::Create( ERCE_DRIVER_CONFLICT ); ercItem->SetItems( candidates[0], second_item ); + ercItem->SetErrorMessage( msg ); SCH_MARKER* marker = new SCH_MARKER( ercItem, pos ); m_sheet.LastScreen()->Append( marker );