Pcbnew: Work on undo/redo in Pcbnew almost finished.

This commit is contained in:
charras
2009-08-23 15:22:44 +00:00
parent 856b7c790f
commit cfdb28394e
24 changed files with 809 additions and 286 deletions
+5 -8
View File
@@ -1489,14 +1489,11 @@ bool CPolyLine::TestPointInsideContour( int icont, int px, int py )
void CPolyLine::Copy( CPolyLine* src )
{
Undraw();
// copy corners
for( unsigned ii = 0; ii < src->corner.size(); ii++ )
corner.push_back( src->corner[ii] );
// copy side styles
for( unsigned ii = 0; ii < src->side_style.size(); ii++ )
side_style.push_back( src->side_style[ii] );
m_HatchStyle = src->m_HatchStyle;
// copy corners, using vector copy
corner = src->corner;
// copy side styles, using vector copy
side_style = src->side_style;
}