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 031c46c887
commit 7978941fa8
1 changed files with 2 additions and 1 deletions

View File

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