Eeschema: fix incorrect parsing of line color (r v b values).
Only the R and V were read, the parsing was stopping before reading the B value.
This commit is contained in:
parent
7ed1968f60
commit
e50d9df76a
|
@ -1242,8 +1242,14 @@ SCH_LINE* SCH_LEGACY_PLUGIN::loadWire( FILE_LINE_READER& aReader )
|
|||
color[3] = 255;
|
||||
|
||||
for(; ii < prm_count && !is_eol( *line ); ii++ )
|
||||
{
|
||||
color[ii] = parseInt( aReader, line, &line );
|
||||
|
||||
// Skip the separator between values
|
||||
if( *line == ',' || *line == ' ')
|
||||
line++;
|
||||
}
|
||||
|
||||
wire->SetLineColor( color[0]/255.0, color[1]/255.0, color[2]/255.0,color[3]/255.0 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue