Merge pull request #17256 from gemu2015/scripter_fix

fix google chart
This commit is contained in:
Theo Arends 2022-12-04 08:25:32 +01:00 committed by GitHub
commit 186aef0ad4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9982,6 +9982,7 @@ exgc:
if (!ind.bits.constant && glob_script_mem.type[ind.index].bits.is_filter) {
// is 1. array
lp = slp;
max_entries = 0;
}
}
}
@ -10068,6 +10069,7 @@ exgc:
//goto nextwebline;
}
} else {
// we need to fetch the labels now
WSContentSend_P(SCRIPT_MSG_GTABLEa);
lp = gc_send_labels(lp, anum);
@ -10121,7 +10123,6 @@ exgc:
divflg = entries / segments;
if (!divflg) divflg = 1;
}
uint32_t aind = ipos;
if (aind >= entries) aind = entries - 1;
for (uint32_t cnt = 0; cnt < entries; cnt++) {