Commit dac20005 authored by Dick Hollenbeck's avatar Dick Hollenbeck

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

parent dd091fc6
...@@ -896,8 +896,8 @@ static bool ReadSheetDescr( BOARD* aBoard, BASE_SCREEN* screen, LINE_READER* aRe ...@@ -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" // only parse the width and height if page size is "User"
if( wname == wxT( "User" ) ) if( wname == wxT( "User" ) )
{ {
char* width = strtok( line, delims ); char* width = strtok( NULL, delims );
char* height = strtok( line, delims ); char* height = strtok( NULL, delims );
if( width && height ) if( width && height )
{ {
......
...@@ -466,8 +466,8 @@ void KICAD_PLUGIN::loadSHEET() ...@@ -466,8 +466,8 @@ void KICAD_PLUGIN::loadSHEET()
// only parse the width and height if page size is "User" // only parse the width and height if page size is "User"
if( wname == wxT( "User" ) ) if( wname == wxT( "User" ) )
{ {
char* width = strtok( line, delims ); char* width = strtok( NULL, delims );
char* height = strtok( line, delims ); char* height = strtok( NULL, delims );
if( width && height ) if( width && height )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment