pcbnew, diff pair config save: fix truncation due to use of int instead double

Fixes #6477
https://gitlab.com/kicad/code/kicad/issues/6477
This commit is contained in:
jean-pierre charras 2020-11-24 09:30:31 +01:00
parent c07a38b91b
commit f64360e915
1 changed files with 3 additions and 3 deletions

View File

@ -412,9 +412,9 @@ BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS( JSON_SETTINGS* aParent, const std:
|| !entry.contains( "via_gap" ) )
continue;
int width = Millimeter2iu( entry["width"].get<int>() );
int gap = Millimeter2iu( entry["gap"].get<int>() );
int via_gap = Millimeter2iu( entry["via_gap"].get<int>() );
int width = Millimeter2iu( entry["width"].get<double>() );
int gap = Millimeter2iu( entry["gap"].get<double>() );
int via_gap = Millimeter2iu( entry["via_gap"].get<double>() );
m_DiffPairDimensionsList.emplace_back(
DIFF_PAIR_DIMENSION( width, gap, via_gap ) );