Need an extra row if there aren't a multiple of the # of samples columns
This commit is contained in:
parent
3f9a856362
commit
1a624dd489
@ -80,6 +80,7 @@ static void fill_sample_table(DrMrUi* ui, int samples, char** names,GtkWidget**
|
|||||||
int si;
|
int si;
|
||||||
gchar buf[64];
|
gchar buf[64];
|
||||||
int rows = (samples/ui->cols);
|
int rows = (samples/ui->cols);
|
||||||
|
if (samples % ui->cols != 0) rows++;
|
||||||
gtk_table_resize(ui->sample_table,rows,ui->cols);
|
gtk_table_resize(ui->sample_table,rows,ui->cols);
|
||||||
|
|
||||||
switch (ui->startSamp) {
|
switch (ui->startSamp) {
|
||||||
|
Loading…
Reference in New Issue
Block a user