kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #25923
Re: vias and DRC something wrong?
Le 28/08/2016 à 17:16, Mário Luzeiro a écrit :
> Hi all,
> just moved for GIT today and rebuild kicad.
>
> Something looks wrong to me on DRC and vias size.
> DRC is flag some of vias with ErrType (30) - Too small via drill
>
> My via size is 0.8 mm.
>
> If I just open the via dialogue properties and press OK,
> Running the DRC and clear all the marks and check again that via will not be flag again.
>
> Anyone knows could be wrong?
>
> Mario Luzeiro
>
> Application: kicad
> Version: (2016-08-28 BZR 7098, Git 82ed0fd)-product, release build
> Libraries: wxWidgets 3.0
> libcurl/7.35.0 GnuTLS/2.12.23 zlib/1.2.8 libidn/1.28 librtmp/2.3
> Platform: Linux 3.19.0-32-generic x86_64, 64 bit, Little endian, wxGTK
> - Build Info -
> wxWidgets: 3.0.0 (wchar_t,wx containers,compatible with 2.8)
> Boost: 1.54.0
> Curl: 7.35.0
> KiCad - Compiler: GCC 4.9.3 with C++ ABI 1002
> Settings: USE_WX_GRAPHICS_CONTEXT=OFF
> USE_WX_OVERLAY=OFF
> KICAD_SCRIPTING=OFF
> KICAD_SCRIPTING_MODULES=OFF
> KICAD_SCRIPTING_WXPYTHON=OFF
> USE_FP_LIB_TABLE=HARD_CODED_ON
> BUILD_GITHUB_PLUGIN=ON
Looks like the new via drill test has a bug.
Can you test this patch?
--
Jean-Pierre CHARRAS
pcbnew/drc_clearance_test_functions.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pcbnew/drc_clearance_test_functions.cpp b/pcbnew/drc_clearance_test_functions.cpp
index 5bf79a3..2e162d4 100644
--- a/pcbnew/drc_clearance_test_functions.cpp
+++ b/pcbnew/drc_clearance_test_functions.cpp
@@ -169,7 +169,7 @@ bool DRC::doTrackDrc( TRACK* aRefSeg, TRACK* aStart, bool testPads )
DRCE_TOO_SMALL_MICROVIA, m_currentMarker );
return false;
}
- if( refvia->GetDrill() < dsnSettings.m_MicroViasMinDrill )
+ if( refvia->GetDrillValue() < dsnSettings.m_MicroViasMinDrill )
{
m_currentMarker = fillMarker( refvia, NULL,
DRCE_TOO_SMALL_MICROVIA_DRILL, m_currentMarker );
@@ -184,7 +184,7 @@ bool DRC::doTrackDrc( TRACK* aRefSeg, TRACK* aStart, bool testPads )
DRCE_TOO_SMALL_VIA, m_currentMarker );
return false;
}
- if( refvia->GetDrill() < dsnSettings.m_ViasMinDrill )
+ if( refvia->GetDrillValue() < dsnSettings.m_ViasMinDrill )
{
m_currentMarker = fillMarker( refvia, NULL,
DRCE_TOO_SMALL_VIA_DRILL, m_currentMarker );
Follow ups
References