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:
parent
d1b2a6ea70
commit
22fdc7f51f
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue