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:
parent
cf53b053a1
commit
be799b49a8
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue