From 7a4325e61043ff5dc2e4334d863757ab1a425b7c Mon Sep 17 00:00:00 2001 From: JamesJCode <13408010-JamesJCode@users.noreply.gitlab.com> Date: Sun, 30 Mar 2025 00:04:37 +0000 Subject: [PATCH] Net inspector groups should be case insensitive --- pcbnew/widgets/pcb_net_inspector_panel.cpp | 5 +++-- pcbnew/widgets/pcb_net_inspector_panel_data_model.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pcbnew/widgets/pcb_net_inspector_panel.cpp b/pcbnew/widgets/pcb_net_inspector_panel.cpp index 85e068f626..eee07e24c7 100644 --- a/pcbnew/widgets/pcb_net_inspector_panel.cpp +++ b/pcbnew/widgets/pcb_net_inspector_panel.cpp @@ -1303,8 +1303,9 @@ void PCB_NET_INSPECTOR_PANEL::onAddGroup() if( std::find_if( m_custom_group_rules.begin(), m_custom_group_rules.end(), [&]( std::unique_ptr<EDA_COMBINED_MATCHER>& rule ) { - return rule->GetPattern().Upper() == newGroupName.Upper(); - } ) == m_custom_group_rules.end() ) + return rule->GetPattern() == newGroupName; + } ) + == m_custom_group_rules.end() ) { m_custom_group_rules.push_back( std::make_unique<EDA_COMBINED_MATCHER>( newGroupName, CTX_NET ) ); diff --git a/pcbnew/widgets/pcb_net_inspector_panel_data_model.h b/pcbnew/widgets/pcb_net_inspector_panel_data_model.h index 2d14950bbd..7f79c76b0f 100644 --- a/pcbnew/widgets/pcb_net_inspector_panel_data_model.h +++ b/pcbnew/widgets/pcb_net_inspector_panel_data_model.h @@ -500,11 +500,11 @@ public: // First see if item matches a group-by rule if( m_parent.m_custom_group_rules.size() > 0 ) { - wxString searchName = aItem->GetNetName().Upper(); + wxString searchName = aItem->GetNetName(); for( const std::unique_ptr<EDA_COMBINED_MATCHER>& rule : m_parent.m_custom_group_rules ) { - if( rule->Find( searchName.Upper() ) ) + if( rule->Find( searchName ) ) { aItem->SetParent( m_custom_group_map[ rule->GetPattern() ] ); groupMatched = true;