set gui widgets to proper values after loading xml file

This commit is contained in:
Tomasz Moń
2009-03-01 19:00:35 +01:00
parent e2cb03ab32
commit 968d2947a7
2 changed files with 100 additions and 32 deletions

View File

@@ -335,7 +335,7 @@ GStrv query_preset_names(guint bank)
str_array[n_total] = NULL;
}
for (x=11; x<data->len; x++) {
for (x=11; ((x<data->len) && (n<n_total)); x++) {
if ((x % 8) == 0) // every 8th byte is 0x00
continue;