┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/draganddrophelper.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-11-20 22:43:53 +0000
committerPeter Penz <[email protected]>2007-11-20 22:43:53 +0000
commitc29d2b81c07e55cf98c16926e4eb88f5d2874dca (patch)
tree667b9354ccac6ee339d88bdb42666923e8b35eea /src/draganddrophelper.cpp
parenta2fc277e1d117b0b78cda5b7f084245e553f36c5 (diff)
don't draw anything if the bounding rectangle is empty
svn path=/trunk/KDE/kdebase/apps/; revision=739378
Diffstat (limited to 'src/draganddrophelper.cpp')
-rw-r--r--src/draganddrophelper.cpp4
1 files changed, 4 insertions, 0 deletions
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);