]> git.sesse.net Git - kdenlive/blobdiff - src/colorcorrection/waveformgenerator.cpp
Mouse tracking re-enabled for the vectorscope (got lost previously). Build warning...
[kdenlive] / src / colorcorrection / waveformgenerator.cpp
index 67419e28a1865af7e7c911405b25d98d2addbf69..971471e711a59b630a655ee859bca599f6993554 100644 (file)
@@ -76,11 +76,10 @@ QImage WaveformGenerator::calculateWaveform(const QSize &waveformSize, const QIm
         const float wPrediv = (float)(ww-1)/(iw-1);
 
         const uchar *bits = image.bits();
-        const uchar *bitsStart = bits;
 
         for (uint i = 0, x = 0; i < byteCount; i += 4) {
 
-            Q_ASSERT(bits < bitsStart + byteCount);
+            Q_ASSERT(bits < image.bits() + byteCount);
 
             col = (QRgb *)bits;