summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/charts/xychart/xychart.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/charts/xychart/xychart.cpp b/src/charts/xychart/xychart.cpp
index 4314f6dd..a6432fd7 100644
--- a/src/charts/xychart/xychart.cpp
+++ b/src/charts/xychart/xychart.cpp
@@ -131,7 +131,8 @@ void XYChart::updateGlChart()
// Doesn't update gl geometry, but refreshes the chart
void XYChart::refreshGlChart()
{
- presenter()->updateGLWidget();
+ if (presenter())
+ presenter()->updateGLWidget();
}
//handlers