mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-29 15:55:04 +00:00
Do not update sectionWidget position outside valid range. (#1399)
This commit is contained in:
parent
5818998bb3
commit
5acb2cf0d3
@ -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) :
|
||||
|
Loading…
Reference in New Issue
Block a user