7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-04 23:35:31 +00:00

Net inspector groups should be case insensitive

This commit is contained in:
JamesJCode 2025-03-30 00:04:37 +00:00
parent 60a26308ae
commit 7a4325e610
2 changed files with 5 additions and 4 deletions

View File

@ -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 ) );

View File

@ -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;