Fix UI freeze when zooming in on long samples (#7253)
This commit is contained in:
@@ -53,7 +53,7 @@ void SampleWaveform::visualize(Parameters parameters, QPainter& painter, const Q
|
||||
|
||||
int pixelIndex = 0;
|
||||
|
||||
for (int i = 0; i < maxFrames; i += resolution)
|
||||
for (int i = 0; i < maxFrames; i += static_cast<int>(resolution))
|
||||
{
|
||||
pixelIndex = i / framesPerPixel;
|
||||
const int frameIndex = !parameters.reversed ? i : maxFrames - i;
|
||||
|
||||
Reference in New Issue
Block a user