Don't allow thickness of 0 in case of an empty stackup.

Fixes https://gitlab.com/kicad/code/kicad/issues/10790
This commit is contained in:
Jeff Young 2023-05-07 22:23:13 +01:00
parent 6f0505f19c
commit 4e0f77c0f4
1 changed files with 2 additions and 1 deletions

View File

@ -326,7 +326,8 @@ void EXPORTER_STEP::determinePcbThickness()
}
}
m_boardThickness = pcbIUScale.IUTomm( thickness );
if( thickness > 0 )
m_boardThickness = pcbIUScale.IUTomm( thickness );
}
}