##// END OF EJS Templates
Check that areaseries is actually in chart before trying to update....
Miikka Heikkinen -
r2800:891ed0097501
parent child
Show More
@@ -110,14 +110,17 public:
110
110
111 void updateGeometry()
111 void updateGeometry()
112 {
112 {
113 // Turn off points drawing from component line chart item, as that
113 // Make sure the series is in a chart before trying to update
114 // messes up the fill for area series.
114 if (m_item->series()->chart()) {
115 suppressPoints();
115 // Turn off points drawing from component line chart item, as that
116 // Component lineseries are not necessarily themselves on the chart,
116 // messes up the fill for area series.
117 // so get the chart type for them from area chart.
117 suppressPoints();
118 forceChartType(m_item->series()->chart()->chartType());
118 // Component lineseries are not necessarily themselves on the chart,
119 LineChartItem::updateGeometry();
119 // so get the chart type for them from area chart.
120 m_item->updatePath();
120 forceChartType(m_item->series()->chart()->chartType());
121 LineChartItem::updateGeometry();
122 m_item->updatePath();
123 }
121 }
124 }
122
125
123 private:
126 private:
General Comments 0
You need to be logged in to leave comments. Login now