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