7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-14 14:09:35 +00:00

Fix typo in DRC rule error reporting that causes crash.

This commit is contained in:
Jeff Young 2020-08-03 22:16:53 +01:00
parent dcd02539e3
commit 7e63376266

View File

@ -772,7 +772,7 @@ bool COMPILER::generateUCode( UCODE* aCode, CONTEXT* aPreflightContext )
if( !vref )
{
msg.Printf( _( "Unrecognized item '%s'" ), node->value.str );
reportError( msg, node->leaf[0]->srcPos - (int) strlen( node->value.str ) );
reportError( msg, node->srcPos - (int) strlen( node->value.str ) );
return false;
}