statistics: fix silly typo in legend code

After each column, instead of setting the new x-variable, the
new value was added to the old value. This led to ever increasing
gaps.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-01-03 00:54:52 +01:00 committed by Dirk Hohndel
parent 7b0455b4d8
commit 9c4157ca35

View file

@ -93,7 +93,7 @@ void Legend::resize()
y += fontHeight;
++displayedItems;
}
x += nextX;
x = nextX;
width = nextX;
if (width >= size.width() / 2.0) // More than half the chart-width -> give up
break;