Don't allow negative line widths for grahpic shapes.

Fixes https://gitlab.com/kicad/code/kicad/issues/5599
This commit is contained in:
Jeff Young 2020-10-07 17:59:11 +01:00
parent cb73f43fc8
commit 75185f6723
1 changed files with 3 additions and 0 deletions

View File

@ -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 );