mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
7b0455b4d8
commit
9c4157ca35
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue