From 9206d177b8d1f16fdf24aa158967b899741a9f6a 2013-06-19 06:08:55 From: Heikkinen Miikka Date: 2013-06-19 06:08:55 Subject: [PATCH] Initialize m_updatePending No explicit initialization resulted in this sometimes initializing to true, which caused chart to never draw in multithreaded rendering environments (linux/mac) Change-Id: I5c9a4eb54c0a4aef7c1df171aa04d4b8c4c7fe05 Reviewed-by: Miikka Heikkinen --- diff --git a/plugins/declarative/declarativechart.cpp b/plugins/declarative/declarativechart.cpp index b0c4091..685da43 100644 --- a/plugins/declarative/declarativechart.cpp +++ b/plugins/declarative/declarativechart.cpp @@ -274,6 +274,7 @@ void DeclarativeChart::initChart(QChart::ChartType type) m_currentSceneImage = 0; m_guiThreadId = QThread::currentThreadId(); m_paintThreadId = 0; + m_updatePending = false; if (type == QChart::ChartTypePolar) m_chart = new QPolarChart();