┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);