pcbnew: Scale line width for import

The line width in the import dialog is meant to reflect the resulting
width and not the given width of the file.

Fixes: lp:1831496
* https://bugs.launchpad.net/kicad/+bug/1831496
This commit is contained in:
Seth Hillbrand 2019-08-21 05:13:18 -07:00
parent d1b2a6ea70
commit 22fdc7f51f
1 changed files with 2 additions and 1 deletions

View File

@ -300,7 +300,8 @@ bool DIALOG_IMPORT_GFX::TransferDataFromWindow()
m_importer->SetImportOffsetMM( m_origin );
m_scaleImport = DoubleValueFromString( UNSCALED_UNITS, m_textCtrlImportScale->GetValue() );
m_importer->SetLineWidthMM( m_lineWidth );
// The line width is meant to be in pcbnew units, so we scale the import width before applying
m_importer->SetLineWidthMM( m_lineWidth * m_scaleImport );
m_importer->SetPlugin( std::move( plugin ) );
LOCALE_IO dummy; // Ensure floats can be read.