ports/176046: kdepim44 - kalarm crashed when trying to create or edit an alarm

Ports-bugs

amistryunitedwarecom
UnitedWare

When using kalarm as part of kdepim-4.4.11.1_4, kalarm will crash (segfault) when attempting to create or edit an alarm.  
Start kalarm.  Create or edit an alarm.  Kalarm will then segfault.
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.


_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[email protected]"
                                            
miwiFreeBSDorg
Synopsis: kdepim44 - kalarm crashed when trying to create or edit an alarm

Responsible-Changed-From-To: freebsd-ports-bugs->kde
Responsible-Changed-By: miwi

Responsible-Changed-Why: 
Over to maintainer.

http://www.freebsd.org/cgi/query-pr.cgi?pr=176046
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[email protected]"