diff --git a/pcbnew/dialogs/dialog_graphic_item_properties.cpp b/pcbnew/dialogs/dialog_graphic_item_properties.cpp index 11fc82948f..19cb877636 100644 --- a/pcbnew/dialogs/dialog_graphic_item_properties.cpp +++ b/pcbnew/dialogs/dialog_graphic_item_properties.cpp @@ -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 );