From beab68db13d18ca7195faae43fcf0bf415d811ca Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 12 Jan 2021 12:45:39 +0000 Subject: [PATCH] Fix bone-headed error in rules optimization. --- pcbnew/pcb_expr_evaluator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/pcb_expr_evaluator.cpp b/pcbnew/pcb_expr_evaluator.cpp index 710bd739a8..b2e3e82b10 100644 --- a/pcbnew/pcb_expr_evaluator.cpp +++ b/pcbnew/pcb_expr_evaluator.cpp @@ -657,7 +657,7 @@ std::unique_ptr PCB_EXPR_UCODE::CreateVarRef( const wxString& // Check for a couple of very common cases and compile them straight to "object code". - if( aField.CmpNoCase( "NetClass" ) ) + if( aField.CmpNoCase( "NetClass" ) == 0 ) { if( aVar == "A" ) return std::make_unique( 0 ); @@ -666,7 +666,7 @@ std::unique_ptr PCB_EXPR_UCODE::CreateVarRef( const wxString& else return nullptr; } - else if( aField.CmpNoCase( "NetName" ) ) + else if( aField.CmpNoCase( "NetName" ) == 0 ) { if( aVar == "A" ) return std::make_unique( 0 );