fix unreleased bug pertaining to "Sheet" line in a *.brd file

This commit is contained in:
Dick Hollenbeck 2012-01-05 10:37:51 -06:00
parent dd091fc6b9
commit dac20005db
2 changed files with 4 additions and 4 deletions

View File

@ -896,8 +896,8 @@ static bool ReadSheetDescr( BOARD* aBoard, BASE_SCREEN* screen, LINE_READER* aRe
// only parse the width and height if page size is "User"
if( wname == wxT( "User" ) )
{
char* width = strtok( line, delims );
char* height = strtok( line, delims );
char* width = strtok( NULL, delims );
char* height = strtok( NULL, delims );
if( width && height )
{

View File

@ -466,8 +466,8 @@ void KICAD_PLUGIN::loadSHEET()
// only parse the width and height if page size is "User"
if( wname == wxT( "User" ) )
{
char* width = strtok( line, delims );
char* height = strtok( line, delims );
char* width = strtok( NULL, delims );
char* height = strtok( NULL, delims );
if( width && height )
{