Fix IDF parse error when final EOL is missing

This commit is contained in:
Cirilo Bernardo 2016-01-11 23:02:12 -05:00 committed by Chris Pavlina
parent 731a137af0
commit 4919f2ba75
1 changed files with 1 additions and 1 deletions

View File

@ -3320,7 +3320,7 @@ void IDF3_COMP_OUTLINE::readData( std::ifstream& aLibFile, const std::string& aH
// check RECORD 4
while( aLibFile.good() && !FetchIDFLine( aLibFile, iline, comment, pos ) );
if( ( !aLibFile.good() && aLibFile.eof() ) || iline.empty() )
if( ( !aLibFile.good() && aLibFile.eof() ) && iline.empty() )
{
ostringstream ostr;