diff --git a/src/Plot/GoogleChart.hpp b/src/Plot/GoogleChart.hpp index b35bab5476911010cf5eb4a9e712899df3d5e639..ef0a9af292ee01d70fa07f1327f42c8082a436c5 100644 --- a/src/Plot/GoogleChart.hpp +++ b/src/Plot/GoogleChart.hpp @@ -366,7 +366,7 @@ class GoogleChart X & y, Xs& ... xy) { - if (low == x.get(counters[0])) + if (counters[0] < x.size() && low == x.get(counters[0])) { point[0] = y.get(counters[0]); counters[0]++;