mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +01:00
Fixed graph resize glitches
This commit is contained in:
parent
7324535bfc
commit
f371500570
@ -308,6 +308,7 @@ void GraphView::redraw(const QSizeF &size)
|
|||||||
if (r.height() < _minYRange * sy)
|
if (r.height() < _minYRange * sy)
|
||||||
r.adjust(0, -(_minYRange/2 * sy - r.height()/2), 0,
|
r.adjust(0, -(_minYRange/2 * sy - r.height()/2), 0,
|
||||||
(_minYRange/2) * sy - r.height()/2);
|
(_minYRange/2) * sy - r.height()/2);
|
||||||
|
r = r.toRect();
|
||||||
|
|
||||||
_xAxis->setSize(r.width());
|
_xAxis->setSize(r.width());
|
||||||
_yAxis->setSize(r.height());
|
_yAxis->setSize(r.height());
|
||||||
|
Loading…
Reference in New Issue
Block a user