[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/dataengines/notifications
From:       Aurélien Gâteau <agateau () kde ! org>
Date:       2009-09-09 11:22:34
Message-ID: 1252495354.642249.29156.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1021493 by gateau:

Fix off-by-one error which caused the last line of the image to be skipped.

 M  +1 -1      notificationsengine.cpp  


--- trunk/KDE/kdebase/workspace/plasma/dataengines/notifications/notificationsengine.cpp #1021492:1021493
@@ -114,7 +114,7 @@
     ptr = pixels.data();
     end = ptr + pixels.length();
     for (int y=0; y<height; ++y, ptr += rowStride) {
-        if (ptr + channels * width >= end) {
+        if (ptr + channels * width > end) {
             kWarning() << "Image data is incomplete. y:" << y << "height:" << height;
             break;
         }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic