diff --git a/src/barchart/qabstractbarseries.cpp b/src/barchart/qabstractbarseries.cpp index fe67f4e..eee4086 100644 --- a/src/barchart/qabstractbarseries.cpp +++ b/src/barchart/qabstractbarseries.cpp @@ -777,22 +777,22 @@ void QAbstractBarSeriesPrivate::initializeAxes() if (axis->type() == QAbstractAxis::AxisTypeBarCategory) { switch (q->type()) { - case QAbstractSeries::SeriesTypeHorizontalBar: - case QAbstractSeries::SeriesTypeHorizontalPercentBar: - case QAbstractSeries::SeriesTypeHorizontalStackedBar: + case QAbstractSeries::SeriesTypeHorizontalBar: + case QAbstractSeries::SeriesTypeHorizontalPercentBar: + case QAbstractSeries::SeriesTypeHorizontalStackedBar: if (axis->orientation() == Qt::Vertical) populateCategories(qobject_cast(axis)); - break; - case QAbstractSeries::SeriesTypeBar: - case QAbstractSeries::SeriesTypePercentBar: - case QAbstractSeries::SeriesTypeStackedBar: - case QAbstractSeries::SeriesTypeBoxPlot: + break; + case QAbstractSeries::SeriesTypeBar: + case QAbstractSeries::SeriesTypePercentBar: + case QAbstractSeries::SeriesTypeStackedBar: + case QAbstractSeries::SeriesTypeBoxPlot: if (axis->orientation() == Qt::Horizontal) - populateCategories(qobject_cast(axis)); - break; - default: + populateCategories(qobject_cast(axis)); + break; + default: qWarning() << "Unexpected series type"; - break; + break; } } }