Fixed lagging bug with rubber band selection rectangle in hex viewer

This commit is contained in:
Nav
2023-03-06 20:58:36 +00:00
parent 6302cab686
commit ec44ccb60e

View File

@@ -421,6 +421,7 @@ namespace Bloom::Widgets
auto hoveredItems = this->items(mousePosition); auto hoveredItems = this->items(mousePosition);
if (this->rubberBandRectItem != nullptr && this->rubberBandInitPoint.has_value()) { if (this->rubberBandRectItem != nullptr && this->rubberBandInitPoint.has_value()) {
this->update();
const auto oldRect = this->rubberBandRectItem->rect(); const auto oldRect = this->rubberBandRectItem->rect();
this->rubberBandRectItem->setRect( this->rubberBandRectItem->setRect(