diff options
Diffstat (limited to 'qt-ui/profile/divetooltipitem.cpp')
-rw-r--r-- | qt-ui/profile/divetooltipitem.cpp | 4 |
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; |