1
0
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:
Martin Tůma 2018-05-20 19:38:01 +02:00
parent 7324535bfc
commit f371500570

View File

@ -308,6 +308,7 @@ void GraphView::redraw(const QSizeF &size)
if (r.height() < _minYRange * sy)
r.adjust(0, -(_minYRange/2 * sy - r.height()/2), 0,
(_minYRange/2) * sy - r.height()/2);
r = r.toRect();
_xAxis->setSize(r.width());
_yAxis->setSize(r.height());