Fix equality in dp matching

A single count is found when dp ends with matching char.  .Right(0) will
return an empty wxString() which is still valid

Fixes https://gitlab.com/kicad/code/kicad/issues/9206
This commit is contained in:
Seth Hillbrand 2021-09-21 19:45:52 -07:00
parent cf53b053a1
commit be799b49a8
1 changed files with 1 additions and 1 deletions

View File

@ -623,7 +623,7 @@ int PNS_PCBNEW_RULE_RESOLVER::matchDpSuffix( const wxString& aNetName, wxString&
}
}
if( rv != 0 && count > 1 )
if( rv != 0 && count >= 1 )
{
aComplementNet = aNetName.Left( aNetName.length() - count ) + aComplementNet
+ aNetName.Right( count - 1 );