summaryrefslogtreecommitdiffstats
path: root/src/charts/barchart/horizontal/stacked/horizontalstackedbarchartitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/charts/barchart/horizontal/stacked/horizontalstackedbarchartitem.cpp')
-rw-r--r--src/charts/barchart/horizontal/stacked/horizontalstackedbarchartitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/charts/barchart/horizontal/stacked/horizontalstackedbarchartitem.cpp b/src/charts/barchart/horizontal/stacked/horizontalstackedbarchartitem.cpp
index 7b1a57e9..1d38c9ab 100644
--- a/src/charts/barchart/horizontal/stacked/horizontalstackedbarchartitem.cpp
+++ b/src/charts/barchart/horizontal/stacked/horizontalstackedbarchartitem.cpp
@@ -57,7 +57,7 @@ void HorizontalStackedBarChartItem::initializeLayout(int set, int category,
checkIndex--;
QBarSet *checkSet = m_series->barSets().at(checkIndex);
const qreal checkValue = checkSet->at(category);
- if (value < 0.0 == checkValue < 0.0) {
+ if ((value < 0.0) == (checkValue < 0.0)) {
Bar *checkBar = m_indexForBarMap.value(checkSet).value(category);
rect = m_layout.at(checkBar->layoutIndex());
found = true;