Fix copy/paste error in numeric evaluator.

Fixes: lp:1783991
* https://bugs.launchpad.net/kicad/+bug/1783991
This commit is contained in:
Jeff Young 2018-07-27 14:18:10 +01:00
parent 4dfae16c1b
commit 40f5ca0bf7
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ NUMERIC_EVALUATOR::Token NUMERIC_EVALUATOR::getToken()
return Unit::Mil;
}
if( sizeLeft >= 4 && ch == 't' && cptr[ 1 ] == 'h' && cptr[ 2 ] == 'o' && cptr[ 2 ] == 'u' && !isalnum( cptr[ 3 ] ))
if( sizeLeft >= 4 && ch == 't' && cptr[ 1 ] == 'h' && cptr[ 2 ] == 'o' && cptr[ 3 ] == 'u' && !isalnum( cptr[ 4 ] ))
{
m_token.pos += 4;
return Unit::Mil;