##// END OF EJS Templates
Fix: do not return duplicates in axes in case of common axis
Michal Klocek -
r2298:67ab42f1f262
parent child
Show More
@@ -370,7 +370,7 QList<QAbstractAxis *> QChart::axes(Qt::Orientations orientation, QAbstractSerie
370 } else {
370 } else {
371 foreach (QAbstractSeries *s, QChart::series()) {
371 foreach (QAbstractSeries *s, QChart::series()) {
372 foreach (QAbstractAxis *axis, s->attachedAxes()){
372 foreach (QAbstractAxis *axis, s->attachedAxes()){
373 if (orientation.testFlag(axis->orientation()))
373 if (orientation.testFlag(axis->orientation()) && !result.contains(axis))
374 result << axis;
374 result << axis;
375 }
375 }
376 }
376 }
General Comments 0
You need to be logged in to leave comments. Login now