← Back to team overview

kicad-developers team mailing list archive

[PATCH] Fix typo causing isolated thermal removal to not work

 

Fixes https://bugs.launchpad.net/kicad/+bug/1741265
From 0b9fdabfc37206e8e95072c482c4b0389aec6199 Mon Sep 17 00:00:00 2001
From: Jon Evans <jon@xxxxxxxxxxxxx>
Date: Sat, 6 Jan 2018 10:33:00 -0500
Subject: [PATCH] Fix typo causing isolated thermal removal to not work

Fixes: lp:1741265
* https://bugs.launchpad.net/kicad/+bug/1741265
---
 pcbnew/zone_filler.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pcbnew/zone_filler.cpp b/pcbnew/zone_filler.cpp
index f23dad722..41ee27be7 100644
--- a/pcbnew/zone_filler.cpp
+++ b/pcbnew/zone_filler.cpp
@@ -1085,7 +1085,7 @@ void ZONE_FILLER::buildUnconnectedThermalStubsPolygonList( SHAPE_POLY_SET& aCorn
                 // add computed polygon to list
                 for( int ic = 0; ic < spokes.PointCount(); ic++ )
                 {
-                    auto cpos = spokes.CPoint( i );
+                    auto cpos = spokes.CPoint( ic );
                     RotatePoint( cpos, fAngle );                               // Rotate according to module orientation
                     cpos += pad->ShapePos();                              // Shift origin to position
                     aCornerBuffer.Append( cpos );
-- 
2.14.1


Follow ups