Skip to content

Commit e9e1268

Browse files
authored
Merge pull request #7737 from AcKoucher/gui-fix-charts
gui: fix flipped negative buckets
2 parents 9756c46 + e1300bb commit e9e1268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/src/chartsWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ void HistogramView::populateBuckets(
414414
for (int bin = 0; bin < histogram_->getBinsCount(); bin++) {
415415
const auto& [bin_start, bin_end] = histogram_->getBinRange(bin);
416416
if ((bin_start + bin_end) / 2 < 0) {
417-
buckets_.negative.push_front(pin_bins[bin]);
417+
buckets_.negative.push_back(pin_bins[bin]);
418418
} else {
419419
buckets_.positive.push_back(pin_bins[bin]);
420420
}

0 commit comments

Comments
 (0)