eeschema: Don't error when replacing references

Avoids an unneeded error message when checking the validity of the
replace action
This commit is contained in:
Seth Hillbrand 2020-08-12 07:04:51 -07:00
parent 5f2a1b31ed
commit 826f81f57d
1 changed files with 2 additions and 2 deletions

View File

@ -388,8 +388,8 @@ bool SCH_FIELD::Replace( wxFindReplaceData& aSearchData, void* aAuxData )
wxCHECK_MSG( aAuxData != NULL, false,
wxT( "Cannot replace reference designator without valid sheet path." ) );
wxCHECK_MSG( aSearchData.GetFlags() & FR_REPLACE_REFERENCES, false,
wxT( "Invalid replace symbol reference field call." ) ) ;
if( !( aSearchData.GetFlags() & FR_REPLACE_REFERENCES ) )
return false;
wxString text = parentComponent->GetRef( (SCH_SHEET_PATH*) aAuxData );