Prevent error when loading bitmaps from some old schematics
This commit is contained in:
parent
63560ecd7b
commit
bfe595819a
|
@ -1188,7 +1188,7 @@ SCH_BITMAP* SCH_LEGACY_PLUGIN::loadBitmap( LINE_READER& aReader )
|
|||
// and put it in memory stream buffer
|
||||
int len = strlen( line );
|
||||
|
||||
for( ; len > 0 && !isspace( *line ); len -= 3, line += 3 )
|
||||
for( ; len > 0 && !isspace( *line ) && '$' != *line; len -= 3, line += 3 )
|
||||
{
|
||||
int value = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue