Don't allow negative line widths for grahpic shapes.
Fixes https://gitlab.com/kicad/code/kicad/issues/5599
This commit is contained in:
parent
cb73f43fc8
commit
75185f6723
|
@ -256,6 +256,9 @@ bool DIALOG_GRAPHIC_ITEM_PROPERTIES::TransferDataFromWindow()
|
|||
if( !DIALOG_GRAPHIC_ITEM_PROPERTIES_BASE::TransferDataFromWindow() )
|
||||
return false;
|
||||
|
||||
if( !m_thickness.Validate( 0, Millimeter2iu( 1000.0 ) ) )
|
||||
return false;
|
||||
|
||||
LAYER_NUM layer = m_LayerSelectionCtrl->GetLayerSelection();
|
||||
|
||||
BOARD_COMMIT commit( m_parent );
|
||||
|
|
Loading…
Reference in New Issue