summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/divetooltipitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/profile/divetooltipitem.cpp')
-rw-r--r--qt-ui/profile/divetooltipitem.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/profile/divetooltipitem.cpp b/qt-ui/profile/divetooltipitem.cpp
index 46d50be02..db0963208 100644
--- a/qt-ui/profile/divetooltipitem.cpp
+++ b/qt-ui/profile/divetooltipitem.cpp
@@ -57,7 +57,9 @@ void ToolTipItem::clear()
void ToolTipItem::setRect(const QRectF &r)
{
- // qDeleteAll(childItems());
+ if( r == rectangle ) {
+ return;
+ }
delete background;
rectangle = r;