diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/GraphicsItem.hpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/GraphicsItem.hpp index 11d7bc80..91061676 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/GraphicsItem.hpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/GraphicsItem.hpp @@ -38,6 +38,10 @@ namespace Bloom::Widgets return; } + if (this->hexViewerItem->allocatedGraphicsItem != nullptr) { + this->hexViewerItem->allocatedGraphicsItem->setHexViewerItem(nullptr); + } + this->hexViewerItem->allocatedGraphicsItem = this; this->setPos(this->hexViewerItem->position()); this->setVisible(true);