From f9dd74745d2a612515e09a86b5c1940f8da023ca Mon Sep 17 00:00:00 2001 From: Roel Standaert Date: Mon, 13 Jul 2020 17:49:34 +0200 Subject: [PATCH] Backported Wt 4 fix for issue #7644 --- src/Wt/Chart/WCartesianChart.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Wt/Chart/WCartesianChart.C b/src/Wt/Chart/WCartesianChart.C index c6190cee76..83d40285ab 100644 --- a/src/Wt/Chart/WCartesianChart.C +++ b/src/Wt/Chart/WCartesianChart.C @@ -4489,7 +4489,7 @@ void WCartesianChart::renderLegend(WPainter& painter) const } else { for (int i = xAxisCount() - 1; i >= 0; --i) { if (xAxis(i).isVisible() && - (xAxes_[i]->location.initLoc == MinimumValue || + (xAxes_[i]->location.initLoc == MaximumValue || xAxes_[i]->location.initLoc == BothSides)) { yOffset = - (xAxes_[i]->location.minOffset + xAxes_[i]->calculatedWidth); @@ -4514,7 +4514,7 @@ void WCartesianChart::renderLegend(WPainter& painter) const } else { for (int i = xAxisCount() - 1; i >= 0; --i) { if (xAxis(i).isVisible() && - (xAxes_[i]->location.initLoc == MaximumValue || + (xAxes_[i]->location.initLoc == MinimumValue || xAxes_[i]->location.initLoc == BothSides)) { yOffset = xAxes_[i]->location.maxOffset + xAxes_[i]->calculatedWidth;