Make sure to initialize cell start location.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17379
This commit is contained in:
Jeff Young
2024-03-10 21:49:54 +00:00
parent c8d897ed0f
commit fbc433deaa
3 changed files with 34 additions and 2 deletions
+2 -1
View File
@@ -49,7 +49,8 @@ PCB_TABLECELL* PCB_EDIT_TABLE_TOOL::copyCell( PCB_TABLECELL* aSource )
{
PCB_TABLECELL* cell = new PCB_TABLECELL( aSource->GetParent() );
cell->SetEnd( aSource->GetEnd() - aSource->GetStart() );
cell->SetStart( aSource->GetStart() );
cell->SetEnd( aSource->GetEnd() );
return cell;
}