rpms/kdelibs/devel kdelibs-4.1.96-crash.patch, NONE, 1.1 kdelibs.spec, 1.413, 1.414
Than Ngo
than at fedoraproject.org
Mon Jan 12 13:43:47 UTC 2009
Author: than
Update of /cvs/extras/rpms/kdelibs/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29823
Modified Files:
kdelibs.spec
Added Files:
kdelibs-4.1.96-crash.patch
Log Message:
fix a crash (appearing in KSMServer)
kdelibs-4.1.96-crash.patch:
--- NEW FILE kdelibs-4.1.96-crash.patch ---
--- kdelibs-4.1.96/plasma/framesvg.cpp.orig 2009/01/06 17:13:38 906699
+++ kdelibs-4.1.96/plasma/framesvg.cpp 2009/01/11 17:31:47 909478
@@ -583,7 +583,8 @@
}
}
} else {
- if (frame->enabledBorders & FrameSvg::LeftBorder && q->hasElement(prefix + "left")) {
+ if (frame->enabledBorders & FrameSvg::LeftBorder && q->hasElement(prefix + "left")
+ && leftHeight > 0 && frame->leftWidth > 0) {
QPixmap left(frame->leftWidth, leftHeight);
left.fill(Qt::transparent);
@@ -594,7 +595,8 @@
p.drawTiledPixmap(QRect(leftOffset, contentTop, frame->leftWidth, contentHeight), left);
}
- if (frame->enabledBorders & FrameSvg::RightBorder && q->hasElement(prefix + "right")) {
+ if (frame->enabledBorders & FrameSvg::RightBorder && q->hasElement(prefix + "right") &&
+ leftHeight > 0 && frame->rightWidth > 0) {
QPixmap right(frame->rightWidth, leftHeight);
right.fill(Qt::transparent);
@@ -605,7 +607,8 @@
p.drawTiledPixmap(QRect(rightOffset, contentTop, frame->rightWidth, contentHeight), right);
}
- if (frame->enabledBorders & FrameSvg::TopBorder && q->hasElement(prefix + "top")) {
+ if (frame->enabledBorders & FrameSvg::TopBorder && q->hasElement(prefix + "top")
+ && topWidth > 0 && frame->topHeight > 0) {
QPixmap top(topWidth, frame->topHeight);
top.fill(Qt::transparent);
@@ -616,7 +619,8 @@
p.drawTiledPixmap(QRect(contentLeft, topOffset, contentWidth, frame->topHeight), top);
}
- if (frame->enabledBorders & FrameSvg::BottomBorder && q->hasElement(prefix + "bottom")) {
+ if (frame->enabledBorders & FrameSvg::BottomBorder && q->hasElement(prefix + "bottom")
+ && topWidth > 0 && frame->bottomHeight > 0) {
QPixmap bottom(topWidth, frame->bottomHeight);
bottom.fill(Qt::transparent);
Index: kdelibs.spec
===================================================================
RCS file: /cvs/extras/rpms/kdelibs/devel/kdelibs.spec,v
retrieving revision 1.413
retrieving revision 1.414
diff -u -r1.413 -r1.414
--- kdelibs.spec 10 Jan 2009 20:54:00 -0000 1.413
+++ kdelibs.spec 12 Jan 2009 13:43:16 -0000 1.414
@@ -1,6 +1,6 @@
Summary: K Desktop Environment 4 - Libraries
Version: 4.1.96
-Release: 5%{?dist}
+Release: 6%{?dist}
%if 0%{?fedora} > 8
Name: kdelibs
@@ -80,6 +80,9 @@
Patch21: kdelibs-4.1.85-plasma-default-wallpaper.patch
Patch22: kdelibs-4.1.96-cmake.patch
+# upstream
+Patch100: kdelibs-4.1.96-crash.patch
+
BuildRequires: qt4-devel >= 4.4.0
Requires: qt4 >= %{_qt4_version}
Requires: xdg-utils
@@ -205,6 +208,9 @@
%patch21 -p1 -b .plasma-default-wallpaper
%patch22 -p1 -b .kdepimlibs-cmake
+# upstream patches
+%patch100 -p1 -b .crash
+
%build
mkdir -p %{_target_platform}
@@ -365,6 +371,9 @@
%changelog
+* Mon Jan 12 2009 Than Ngo <than at redhat.com> - 4.1.96-6
+- fix a crash (appearing in KSMServer)
+
* Sat Jan 10 2009 Than Ngo <than at redhat.com> - 4.1.96-5
- kdeworkspace cmake files in correct place
More information about the fedora-extras-commits
mailing list