Need an extra row if there aren't a multiple of the # of samples columns

This commit is contained in:
Nick Lanham 2012-03-17 16:37:46 +01:00
parent 3f9a856362
commit 1a624dd489

View File

@ -80,6 +80,7 @@ static void fill_sample_table(DrMrUi* ui, int samples, char** names,GtkWidget**
int si;
gchar buf[64];
int rows = (samples/ui->cols);
if (samples % ui->cols != 0) rows++;
gtk_table_resize(ui->sample_table,rows,ui->cols);
switch (ui->startSamp) {