Remove unnecessary validations.
Not sure if this will fix the bug or not as I can't reproduce it, but I'd say odds are pretty good. Fixes https://gitlab.com/kicad/code/kicad/issues/10467
This commit is contained in:
parent
cf9fafaba5
commit
d56e488f2d
|
@ -267,16 +267,6 @@ 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;
|
||||
|
||||
if( m_thickness.GetValue() == 0 && !m_filledCtrl->GetValue() )
|
||||
{
|
||||
DisplayError( this, _( "Line width may not be 0 for unfilled shapes." ) );
|
||||
m_thicknessCtrl->SetFocus();
|
||||
return false;
|
||||
}
|
||||
|
||||
LAYER_NUM layer = m_LayerSelectionCtrl->GetLayerSelection();
|
||||
|
||||
BOARD_COMMIT commit( m_parent );
|
||||
|
|
Loading…
Reference in New Issue