Date: Tue, 12 Feb 2013 03:50:19 GMT From: Anish Mistry <amistry@unitedware.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/176046: kdepim44 - kalarm crashed when trying to create or edit an alarm Message-ID: <201302120350.r1C3oJHD043881@red.freebsd.org> Resent-Message-ID: <201302120400.r1C400nK078897@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 176046 >Category: ports >Synopsis: kdepim44 - kalarm crashed when trying to create or edit an alarm >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 12 04:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Anish Mistry >Release: 9.1-RELEASE amd64 >Organization: UnitedWare >Environment: FreeBSD bigguy.am-productions.biz 9.1-RELEASE FreeBSD 9.1-RELEASE #2: Sat Feb 2 11:55:10 EST 2013 root@bigguy.am-productions.biz:/usr/obj/usr/src/sys/BIGGUY amd64 >Description: When using kalarm as part of kdepim-4.4.11.1_4, kalarm will crash (segfault) when attempting to create or edit an alarm. >How-To-Repeat: Start kalarm. Create or edit an alarm. Kalarm will then segfault. >Fix: This has been fixed upstream with the attached patch. Recompiling kdepim-4.4.11.1_4 with the patch fixed the problem for me. Patch attached with submission follows: --- kalarm/lib/spinbox2.cpp +++ kalarm/lib/spinbox2.cpp @@ -28,7 +28,7 @@ #include <QMouseEvent> #include <QStyleOptionSpinBox> #include <QGraphicsPixmapItem> -#include <QPaintEngine> +#include <QPainter> #include <QTimer> #include <QFrame> #include <QBrush> @@ -588,8 +588,9 @@ void SpinMirror::setFrame() p = grabWidget(mMainSpinbox, QRect(x, 0, 1, height())); // Blot out edit field stuff from the middle of the slice QPixmap dot = grabWidget(mMainSpinbox, QRect(x, editOffsetY, 1, 1)); - QPaintEngine* pe = p.paintEngine(); - pe->drawTiledPixmap(QRectF(0, editOffsetY, 1, height() - 2*editOffsetY), dot, QPointF(0, 0)); + QPainter painter(&p); + painter.drawTiledPixmap(0, editOffsetY, 1, height() - 2*editOffsetY, dot, 0, 0); + painter.end(); // Horizontally fill the mirror widget with the vertical slice p = p.scaled(size()); // Grab the left hand border of the main spinbox, and draw it into the mirror widget. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302120350.r1C3oJHD043881>