[SCM] Qt 4 Debian packaging branch, master, updated. debian/4.6.2-1-1-g9aff1bb

Fathi Boudra fabo at alioth.debian.org
Fri Mar 19 15:55:41 UTC 2010


The following commit has been merged in the master branch:
commit 9aff1bb67eea99688b54d7e69888bef0041b5a22
Author: Fathi Boudra <fabo at debian.org>
Date:   Fri Mar 19 16:54:59 2010 +0100

    Add cherry-picked patch from upstream:
    0001_qpixmap_load_no_modify_referenced_copies.diff
---
 debian/changelog                                   |    8 ++++
 ...1_qpixmap_load_no_modify_referenced_copies.diff |   44 ++++++++++++++++++++
 debian/patches/series                              |    3 +
 3 files changed, 55 insertions(+), 0 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 714cb4f..a3e534e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+qt4-x11 (4:4.6.2-2) UNRELEASED; urgency=low
+
+  * Add upstream patch:
+    - 0001_qpixmap_load_no_modify_referenced_copies.diff
+      Fixed QPixmap::load() to not modify referenced copies.
+
+ -- Fathi Boudra <fabo at debian.org>  Fri, 19 Mar 2010 16:28:34 +0100
+
 qt4-x11 (4:4.6.2-1) experimental; urgency=low
 
   * New upstream release (Closes: #571990).
diff --git a/debian/patches/0001_qpixmap_load_no_modify_referenced_copies.diff b/debian/patches/0001_qpixmap_load_no_modify_referenced_copies.diff
new file mode 100644
index 0000000..6d651eb
--- /dev/null
+++ b/debian/patches/0001_qpixmap_load_no_modify_referenced_copies.diff
@@ -0,0 +1,44 @@
+From 1ab5feb6260589f254ed209816cb67dbe9d3e4a5 Mon Sep 17 00:00:00 2001
+From: =?utf-8?q?Trond=20Kjern=C3=A5sen?= <trond at trolltech.com>
+Date: Mon, 1 Mar 2010 13:44:22 +0100
+Subject: [PATCH] Fixed QPixmap::load() to not modify referenced copies (again!)
+
+Change 8721d060a67a01ac891cab9d3d17aacf7373bcf0 broke the previous
+fix.
+
+Task-number: QTBUG-8606
+Reviewed-by: Gunnar
+---
+ src/gui/image/qpixmap.cpp |   19 ++++++-------------
+ 1 files changed, 6 insertions(+), 13 deletions(-)
+
+--- a/src/gui/image/qpixmap.cpp
++++ b/src/gui/image/qpixmap.cpp
+@@ -831,21 +831,14 @@ bool QPixmap::load(const QString &fileNa
+     if (QPixmapCache::find(key, *this))
+         return true;
+ 
+-    bool ok;
+-
+-    if (data) {
+-        ok = data->fromFile(fileName, format, flags);
+-    } else {
+-        QScopedPointer<QPixmapData> tmp(QPixmapData::create(0, 0, QPixmapData::PixmapType));
+-        ok = tmp->fromFile(fileName, format, flags);
+-        if (ok)
+-            data = tmp.take();
+-    }
+-
+-    if (ok)
++    QScopedPointer<QPixmapData> tmp(QPixmapData::create(0, 0, data ? data->type : QPixmapData::PixmapType));
++    if (tmp->fromFile(fileName, format, flags)) {
++        data = tmp.take();
+         QPixmapCache::insert(key, *this);
++        return true;
++    }
+ 
+-    return ok;
++    return false;
+ }
+ 
+ /*!
diff --git a/debian/patches/series b/debian/patches/series
index 69be1b0..75ff80b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,6 @@
+# upstream patches
+0001_qpixmap_load_no_modify_referenced_copies.diff
+
 # qt-copy patches
 0180-window-role.diff
 0195-compositing-properties.diff

-- 
Qt 4 Debian packaging



More information about the pkg-kde-commits mailing list