Don't report non-meeting line-pairs.

We're called on each line pair, so a rect would otherwise
always report to failures for the two pairs of opposite
sides.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20326
This commit is contained in:
Jeff Young
2025-03-13 16:32:25 +00:00
parent 18b5046fae
commit e48a2b5ee4
3 changed files with 47 additions and 37 deletions
+1 -1
View File
@@ -1599,7 +1599,7 @@ int EDIT_TOOL::ModifyLines( const TOOL_EVENT& aEvent )
commit.Push( pairwise_line_routine->GetCommitDescription() );
if( const std::optional<wxString> msg = pairwise_line_routine->GetStatusMessage() )
if( const std::optional<wxString> msg = pairwise_line_routine->GetStatusMessage( segmentCount ) )
frame()->ShowInfoBarMsg( *msg );
return 0;