From 5acb2cf0d3729f10f1d7479787d78aedd4367524 Mon Sep 17 00:00:00 2001 From: karliss Date: Wed, 27 Mar 2019 10:27:24 +0200 Subject: [PATCH] Do not update sectionWidget position outside valid range. (#1399) --- src/widgets/SectionsWidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/widgets/SectionsWidget.cpp b/src/widgets/SectionsWidget.cpp index 42b4fa4c..b948b003 100644 --- a/src/widgets/SectionsWidget.cpp +++ b/src/widgets/SectionsWidget.cpp @@ -410,6 +410,8 @@ void AddrDockScene::mousePressEvent(QGraphicsSceneMouseEvent *event) disableCenterOn = false; return; } + } else { + QToolTip::hideText(); } } @@ -434,7 +436,7 @@ RVA AddrDockScene::getAddrFromPos(int posY, bool seek) return addrMap[name] + (float)addrSizeMap[name] * ((float)(posY - y) / (float)h); } } - return 0; + return RVA_INVALID; } RawAddrDock::RawAddrDock(SectionsModel *model, QWidget *parent) :