From 93a8a873687ce056735a0d0608746087d542aec5 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 12 Aug 2008 18:41:56 +0000 Subject: [PATCH] stop crashing due to undefined destruction order svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=845983 --- paintutils.cpp | 1 + widgets/signalplotter.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/paintutils.cpp b/paintutils.cpp index 0f6d6f1f0..b8fa88b26 100644 --- a/paintutils.cpp +++ b/paintutils.cpp @@ -42,6 +42,7 @@ void shadowBlur(QImage &image, int radius, const QColor &color) QPainter p(&image); p.setCompositionMode(QPainter::CompositionMode_SourceIn); p.fillRect(image.rect(), color); + p.end(); } QPixmap shadowText(QString text, QColor textColor, QColor shadowColor, QPoint offset, int radius) diff --git a/widgets/signalplotter.cpp b/widgets/signalplotter.cpp index b2c316c54..91b10e262 100644 --- a/widgets/signalplotter.cpp +++ b/widgets/signalplotter.cpp @@ -514,6 +514,7 @@ QPixmap SignalPlotter::getSnapshotImage(uint w, uint height) QPixmap image = QPixmap(newWidth, height); QPainter p(&image); drawWidget(&p, newWidth, height, newWidth); + p.end(); return image; }