← Back to team overview

kicad-developers team mailing list archive

[PATCH] Increase layer thickness limit from 3mm to 10mm

 

Warning : this patch is extremely trivial.

The following bug report argues that a 3mm PCB thickness limit is too small
:
https://bugs.launchpad.net/kicad/+bug/1463689

This patch increases the limit to 10mm, a somewhat arbitrary value.

Martin
From da458ea6d008671b33fa50b0f0e2422f7951f45c Mon Sep 17 00:00:00 2001
From: Martin d'Allens <martin.dallens@xxxxxxxxx>
Date: Sun, 14 Jun 2015 19:04:10 +0200
Subject: [PATCH 3/3] Increase layer thickness limit from 3mm to 10mm (bug
 #1463689)

---
 pcbnew/dialogs/dialog_layers_setup.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pcbnew/dialogs/dialog_layers_setup.cpp b/pcbnew/dialogs/dialog_layers_setup.cpp
index da06a75..6933b73 100644
--- a/pcbnew/dialogs/dialog_layers_setup.cpp
+++ b/pcbnew/dialogs/dialog_layers_setup.cpp
@@ -627,7 +627,7 @@ void DIALOG_LAYERS_SETUP::OnOkButtonClick( wxCommandEvent& event )
 
         // Clamp the value between reasonable values
 
-        thickness = Clamp( Millimeter2iu( 0.1 ), thickness, Millimeter2iu( 3.0 ) );
+        thickness = Clamp( Millimeter2iu( 0.1 ), thickness, Millimeter2iu( 10.0 ) );
         m_pcb->GetDesignSettings().SetBoardThickness( thickness );
 
         EndModal( wxID_OK );
-- 
2.1.4


Follow ups