diff --git a/src/Charts/PythonChart.cpp b/src/Charts/PythonChart.cpp index 23b876e84..c5abf35f8 100644 --- a/src/Charts/PythonChart.cpp +++ b/src/Charts/PythonChart.cpp @@ -418,6 +418,9 @@ PythonChart::PythonChart(Context *context, bool ridesummary) : GcChartWindow(con void PythonChart::setWeb(bool x) { + // check python was loaded + if (python == NULL || python->loaded == false) return; + // toggle the use of a web chart or a qt chart for rendering the data if (x && canvas==NULL) {