Fix bug in legacy schematic I/O plugin.

When part definition contained in line comments, the next line was not
being loaded causing and infinite loop.

Fixes lp:1666024

https://bugs.launchpad.net/kicad/+bug/1666024
This commit is contained in:
Wayne Stambaugh 2017-02-19 17:44:53 -05:00
parent 70301a6244
commit 1672d37782
1 changed files with 1 additions and 1 deletions

View File

@ -2448,7 +2448,7 @@ LIB_PART* SCH_LEGACY_PLUGIN_CACHE::loadPart( FILE_LINE_READER& aReader )
while( line )
{
if( *line == '#' ) // Comment
continue;
;
else if( strCompare( "Ti", line, &line ) ) // Modification date is ignored.
continue;
else if( strCompare( "ALIAS", line, &line ) ) // Aliases