Skip to content

Commit

Permalink
Backported Wt 4 fix for issue #7644
Browse files Browse the repository at this point in the history
  • Loading branch information
RockinRoel committed Jul 13, 2020
1 parent 79d5563 commit f9dd747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Wt/Chart/WCartesianChart.C
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit f9dd747

Please sign in to comment.