From: Peter Penz Date: Tue, 20 Nov 2007 22:43:53 +0000 (+0000) Subject: don't draw anything if the bounding rectangle is empty X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/c29d2b81c07e55cf98c16926e4eb88f5d2874dca don't draw anything if the bounding rectangle is empty svn path=/trunk/KDE/kdebase/apps/; revision=739378 --- diff --git a/src/draganddrophelper.cpp b/src/draganddrophelper.cpp index d9188675a..f03a339bd 100644 --- a/src/draganddrophelper.cpp +++ b/src/draganddrophelper.cpp @@ -61,6 +61,10 @@ void DragAndDropHelper::drawHoverIndication(QWidget* widget, const QRect& bounds, const QBrush& brush) { + if (bounds.isEmpty()) { + return; + } + QPainter painter(widget); painter.save(); QBrush blendedBrush(brush);