fix google chart

This commit is contained in:
gemu2015 2022-12-04 08:16:21 +01:00
parent 25ab45288b
commit 0015b5fc04

View File

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