1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

Fix speed graph "high speeds" bug

This commit is contained in:
dzmat 2018-11-04 14:12:11 +07:00 committed by Vladimir Golovnev (Glassez)
parent 54e4806e3d
commit 6fa64c81b7
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7

View File

@ -321,7 +321,7 @@ void SpeedPlotView::paintEvent(QPaintEvent *)
// draw graphs
rect.adjust(3, 0, 0, 0); // Need, else graphs cross left gridline
const double yMultiplier = (niceScale.arg == 0.0) ? 0.0 : (rect.height() / niceScale.sizeInBytes());
const double yMultiplier = (niceScale.arg == 0.0) ? 0.0 : (static_cast<double>(rect.height()) / niceScale.sizeInBytes());
const double xTickSize = static_cast<double>(rect.width()) / m_viewablePointsCount;
boost::circular_buffer<PointData> &queue = getCurrentData();