Corrected bug with HexViewerItem::allocatedGraphicsItem being cleared unexpectedly upon graphic item allocation in the hex viewer
This commit is contained in:
@@ -38,6 +38,10 @@ namespace Bloom::Widgets
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this->hexViewerItem->allocatedGraphicsItem != nullptr) {
|
||||||
|
this->hexViewerItem->allocatedGraphicsItem->setHexViewerItem(nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
this->hexViewerItem->allocatedGraphicsItem = this;
|
this->hexViewerItem->allocatedGraphicsItem = this;
|
||||||
this->setPos(this->hexViewerItem->position());
|
this->setPos(this->hexViewerItem->position());
|
||||||
this->setVisible(true);
|
this->setVisible(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user