Do not update sectionWidget position outside valid range. (#1399)

This commit is contained in:
karliss 2019-03-27 10:27:24 +02:00 committed by xarkes
parent 5818998bb3
commit 5acb2cf0d3

View File

@ -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) :