Browse Source

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
6.0.7
Seth Hillbrand 4 years ago
parent
commit
be799b49a8
  1. 2
      pcbnew/router/pns_kicad_iface.cpp

2
pcbnew/router/pns_kicad_iface.cpp

@ -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…
Cancel
Save