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:
parent
dcd02539e3
commit
7e63376266
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user