Browse Source

Fix compile errors on non-GCC compilers.

Fixes: lp:1782148
* https://bugs.launchpad.net/kicad/+bug/1782148

(cherry picked from commit 2ada8fa)
pull/17/head
Jeff Young 7 years ago
parent
commit
65d72e1c11
  1. 4
      common/widgets/wx_grid.cpp

4
common/widgets/wx_grid.cpp

@ -30,7 +30,7 @@ void WX_GRID::SetTable( wxGridTableBase* aTable )
{
// wxGrid::SetTable() messes up the column widths from wxFormBuilder so we have to save
// and restore them.
int formBuilderColWidths[ GetNumberCols() ];
int* formBuilderColWidths = new int[ GetNumberCols() ];
for( int i = 0; i < GetNumberCols(); ++i )
formBuilderColWidths[ i ] = GetColSize( i );
@ -39,6 +39,8 @@ void WX_GRID::SetTable( wxGridTableBase* aTable )
for( int i = 0; i < GetNumberCols(); ++i )
SetColSize( i, formBuilderColWidths[ i ] );
delete[] formBuilderColWidths;
}

Loading…
Cancel
Save