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:
parent
5f2a1b31ed
commit
826f81f57d
|
@ -388,8 +388,8 @@ bool SCH_FIELD::Replace( wxFindReplaceData& aSearchData, void* aAuxData )
|
||||||
wxCHECK_MSG( aAuxData != NULL, false,
|
wxCHECK_MSG( aAuxData != NULL, false,
|
||||||
wxT( "Cannot replace reference designator without valid sheet path." ) );
|
wxT( "Cannot replace reference designator without valid sheet path." ) );
|
||||||
|
|
||||||
wxCHECK_MSG( aSearchData.GetFlags() & FR_REPLACE_REFERENCES, false,
|
if( !( aSearchData.GetFlags() & FR_REPLACE_REFERENCES ) )
|
||||||
wxT( "Invalid replace symbol reference field call." ) ) ;
|
return false;
|
||||||
|
|
||||||
wxString text = parentComponent->GetRef( (SCH_SHEET_PATH*) aAuxData );
|
wxString text = parentComponent->GetRef( (SCH_SHEET_PATH*) aAuxData );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue