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

List:       kde-commits
Subject:    qt-copy
From:       Benjamin Reed <ranger () befunk ! com>
Date:       2008-07-31 13:42:24
Message-ID: 1217511744.155961.27809.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 840148 by reed:

qclipboard fix from lfranchi

 A             patches/0242-qclipboard-off-by-one.diff  
 M  +1 -1      patches/README  
 M  +1 -1      src/gui/kernel/qclipboard_mac.cpp  


--- trunk/qt-copy/patches/README #840147:840148
@@ -1,5 +1,5 @@
 Please assign the numbers incrementally, and don't reuse them. The next one:
-#0242
+#0243
 
 This directory contains patches for Qt that haven't been accepted by TrollTech
 yet. All patches in this directory itself shouldn't make qt-copy incompatible
--- trunk/qt-copy/src/gui/kernel/qclipboard_mac.cpp #840147:840148
@@ -248,7 +248,7 @@
 #endif
 
     QList<QByteArray> md = promise.convertor->convertFromMime(promise.mime, \
                promise.data, flavorAsQString);
-    if (md.size() < promise.offset)
+    if (md.size() <= promise.offset)
         return cantGetFlavorErr;
     const QByteArray &ba = md[promise.offset];
     QCFType<CFDataRef> data = CFDataCreate(0, (UInt8*)ba.constData(), ba.size());


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

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