mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 15:27:54 +00:00
Merge pull request #9815 from dzmat/fix_zero_graphs
Fix speed graph "high speeds" bug. Closes #9807
This commit is contained in:
commit
d2d28ef19c
@ -321,7 +321,7 @@ void SpeedPlotView::paintEvent(QPaintEvent *)
|
|||||||
// draw graphs
|
// draw graphs
|
||||||
rect.adjust(3, 0, 0, 0); // Need, else graphs cross left gridline
|
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;
|
const double xTickSize = static_cast<double>(rect.width()) / m_viewablePointsCount;
|
||||||
|
|
||||||
boost::circular_buffer<PointData> &queue = getCurrentData();
|
boost::circular_buffer<PointData> &queue = getCurrentData();
|
||||||
|
Loading…
Reference in New Issue
Block a user