diff --git a/eeschema/fields_grid_table.cpp b/eeschema/fields_grid_table.cpp index 3638aa8d84..fc175aca09 100644 --- a/eeschema/fields_grid_table.cpp +++ b/eeschema/fields_grid_table.cpp @@ -339,8 +339,10 @@ wxString FIELDS_GRID_TABLE::GetValue( int aRow, int aCol ) default: // we can't assert here because wxWidgets sometimes calls this without checking // the column type when trying to see if there's an overflow - return wxT( "bad wxWidgets!" ); + break; } + + return wxT( "bad wxWidgets!" ); }