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
47315864c4
commit
866fade4ab
|
@ -307,17 +307,7 @@ 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;
|
||||
}
|
||||
|
||||
int layer = m_LayerSelectionCtrl->GetLayerSelection();
|
||||
LAYER_NUM layer = m_LayerSelectionCtrl->GetLayerSelection();
|
||||
|
||||
BOARD_COMMIT commit( m_parent );
|
||||
commit.Modify( m_item );
|
||||
|
|
Loading…
Reference in New Issue