Browse Source

EAGLE import: allow more lines before <eagle> tag.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19528

(cherry picked from commit 603a500bc0)
pcb_db
Alex Shvartzkop 9 months ago
parent
commit
d3f53db3eb
  1. 2
      eeschema/sch_io/eagle/sch_io_eagle.cpp
  2. 2
      pcbnew/pcb_io/eagle/pcb_io_eagle.cpp

2
eeschema/sch_io/eagle/sch_io_eagle.cpp

@ -2694,7 +2694,7 @@ bool SCH_IO_EAGLE::checkHeader( const wxString& aFileName ) const
wxTextInputStream text( input );
for( int i = 0; i < 4; i++ )
for( int i = 0; i < 8; i++ )
{
if( input.Eof() )
return false;

2
pcbnew/pcb_io/eagle/pcb_io_eagle.cpp

@ -281,7 +281,7 @@ bool PCB_IO_EAGLE::checkHeader(const wxString& aFileName) const
wxTextInputStream text( input );
for( int i = 0; i < 4; i++ )
for( int i = 0; i < 8; i++ )
{
if( input.Eof() )
return false;

Loading…
Cancel
Save