Browse Source

pcbnew: Remove maximum zone corner radius

We no longer require this as we calculate the number of segments based
on the maximum deviation rather than fixed numbers.

Fixes: lp:1780518
* https://bugs.launchpad.net/kicad/+bug/1780518
pull/13/head
Seth Hillbrand 7 years ago
parent
commit
ebfa7d1f7d
  1. 2
      pcbnew/class_zone.cpp
  2. 4
      pcbnew/zone_settings.cpp
  3. 2
      pcbnew/zone_settings.h

2
pcbnew/class_zone.cpp

@ -646,8 +646,6 @@ int ZONE_CONTAINER::GetThermalReliefCopperBridge( D_PAD* aPad ) const
void ZONE_CONTAINER::SetCornerRadius( unsigned int aRadius )
{
m_cornerRadius = aRadius;
if( m_cornerRadius > (unsigned int) Mils2iu( MAX_ZONE_CORNER_RADIUS_MILS ) )
m_cornerRadius = Mils2iu( MAX_ZONE_CORNER_RADIUS_MILS );
}

4
pcbnew/zone_settings.cpp

@ -142,9 +142,7 @@ void ZONE_SETTINGS::ExportSetting( ZONE_CONTAINER& aTarget, bool aFullExport ) c
void ZONE_SETTINGS::SetCornerRadius( int aRadius )
{
if( aRadius > Mils2iu( MAX_ZONE_CORNER_RADIUS_MILS ) )
m_cornerRadius = Mils2iu( MAX_ZONE_CORNER_RADIUS_MILS );
else if( aRadius < 0 )
if( aRadius < 0 )
m_cornerRadius = 0;
else
m_cornerRadius = aRadius;

2
pcbnew/zone_settings.h

@ -33,8 +33,6 @@
#include <zones.h>
#include <wx/dataview.h>
#define MAX_ZONE_CORNER_RADIUS_MILS 400
enum ZONE_FILL_MODE
{
ZFM_POLYGONS = 0, // fill zone with polygons

Loading…
Cancel
Save