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

List:       kde-commits
Subject:    koffice/libs/pigment/compositeops
From:       Lukáš Tvrdý <lukast.dev () gmail ! com>
Date:       2010-09-10 13:39:08
Message-ID: 20100910133908.1446CAC884 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1173798 by lukast:

Fix infinite loop when you want to composite (copy) single source pixel to device.

 M  +2 -1      KoCompositeOpCopy.h  


--- trunk/koffice/libs/pigment/compositeops/KoCompositeOpCopy.h #1173797:1173798
@@ -67,7 +67,8 @@
                 qint32 columns = numColumns;
                 while (columns > 0) {
                     memcpy(dstN, src, bytesPerPixel);
-                    dst += bytesPerPixel;
+                    dstN += bytesPerPixel;
+                    columns--;
                 }
             } else {
                 memcpy(dst, src, numColumns * bytesPerPixel);
[prev in list] [next in list] [prev in thread] [next in thread] 

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