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
(cherry picked from commit 22fdc7f51f
)
This commit is contained in:
parent
fb565caf7b
commit
b34a307936
|
@ -320,7 +320,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