~cern-kicad/kicad/kicad-pns-tom

« back to all changes in this revision

Viewing changes to pcbnew/zone_filling_algorithm.cpp

Pcbnew: fix bug 1179877, due a bad default  copy constructor, after  my changes about CPOLYGONS_LIST class.
More about CPOLYGONS_LIST work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
                            CPOLYGONS_LIST* aCornerBuffer )
59
59
{
60
60
    if( aCornerBuffer == NULL )
61
 
        m_FilledPolysList.clear();
 
61
        m_FilledPolysList.RemoveAllContours();
62
62
 
63
63
    /* convert outlines + holes to outlines without holes (adding extra segments if necessary)
64
64
     * m_Poly data is expected normalized, i.e. NormalizeAreaOutlines was used after building
121
121
            CopyPolygonsFromFilledPolysListToKiPolygonList( polyset_zone_solid_areas );
122
122
            polyset_zone_solid_areas -= margin;
123
123
            // put solid area in m_FilledPolysList:
124
 
            m_FilledPolysList.clear();
 
124
            m_FilledPolysList.RemoveAllContours();
125
125
            CopyPolygonsFromKiPolygonListToFilledPolysList( polyset_zone_solid_areas );
126
126
        }
127
127
        if ( m_FillMode )   // if fill mode uses segments, create them: