##// END OF EJS Templates
Use the points variable passed in rather than the class member...
Andy Shaw -
r2766:810e912b2c05
parent child
Show More
@@ -840,10 +840,10 void QXYSeriesPrivate::drawSeriesPointLabels(QPainter *painter, const QVector<QP
840 840 painter->setPen(QPen(m_pointLabelsColor));
841 841 QFontMetrics fm(painter->font());
842 842
843 for (int i(0); i < m_points.size(); i++) {
843 for (int i(0); i < points.size(); i++) {
844 844 QString pointLabel = m_pointLabelsFormat;
845 pointLabel.replace(xPointTag, presenter()->numberToString(m_points.at(i).x()));
846 pointLabel.replace(yPointTag, presenter()->numberToString(m_points.at(i).y()));
845 pointLabel.replace(xPointTag, presenter()->numberToString(points.at(i).x()));
846 pointLabel.replace(yPointTag, presenter()->numberToString(points.at(i).y()));
847 847
848 848 // Position text in relation to the point
849 849 int pointLabelWidth = fm.width(pointLabel);
General Comments 0
You need to be logged in to leave comments. Login now