mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Fix some casts/calculations to keep PVS Studio happy
* It identifies some potential overflows which we know likely won't happen, but the fixes are harmless. * Some issues are definitely bad, though not actual bugs.
This commit is contained in:
@@ -260,7 +260,8 @@ void TimelineBar::layout()
|
||||
|
||||
qreal virtualSize = m_dataArea.width() * m_zoom;
|
||||
|
||||
while(virtualSize > 0 && (maxEID / m_eidAxisLabelStep) * m_eidAxisLabelWidth > virtualSize)
|
||||
while(virtualSize > 0 &&
|
||||
(qreal(maxEID) / qreal(m_eidAxisLabelStep)) * m_eidAxisLabelWidth > virtualSize)
|
||||
{
|
||||
// increment 1, 2, 5, 10, 20, 50, 100, ...
|
||||
if(stepSize == 1)
|
||||
|
||||
Reference in New Issue
Block a user