From 67ab42f1f2622a86ac640dbf8f289ebac58fd189 2012-11-27 10:09:45 From: Michal Klocek Date: 2012-11-27 10:09:45 Subject: [PATCH] Fix: do not return duplicates in axes in case of common axis --- diff --git a/src/qchart.cpp b/src/qchart.cpp index ad33607..c4067bf 100644 --- a/src/qchart.cpp +++ b/src/qchart.cpp @@ -370,7 +370,7 @@ QList QChart::axes(Qt::Orientations orientation, QAbstractSerie } else { foreach (QAbstractSeries *s, QChart::series()) { foreach (QAbstractAxis *axis, s->attachedAxes()){ - if (orientation.testFlag(axis->orientation())) + if (orientation.testFlag(axis->orientation()) && !result.contains(axis)) result << axis; } }