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:
Jeff Young 2022-02-20 19:16:03 +00:00
parent 47315864c4
commit 866fade4ab
1 changed files with 1 additions and 11 deletions

View File

@ -307,17 +307,7 @@ bool DIALOG_GRAPHIC_ITEM_PROPERTIES::TransferDataFromWindow()
if( !DIALOG_GRAPHIC_ITEM_PROPERTIES_BASE::TransferDataFromWindow() ) if( !DIALOG_GRAPHIC_ITEM_PROPERTIES_BASE::TransferDataFromWindow() )
return false; return false;
if( !m_thickness.Validate( 0, Millimeter2iu( 1000.0 ) ) ) LAYER_NUM layer = m_LayerSelectionCtrl->GetLayerSelection();
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();
BOARD_COMMIT commit( m_parent ); BOARD_COMMIT commit( m_parent );
commit.Modify( m_item ); commit.Modify( m_item );