0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-01-11 17:18:10 +03:00

Layout deletion has been fixed

This commit is contained in:
Arin Alexander 2019-10-16 22:55:35 +03:00
parent 2efe2afa72
commit 40726db745

View File

@ -158,6 +158,7 @@ void AbstractLayout::beforeDelete()
#endif #endif
BaseDesignIntf *bi = dynamic_cast<BaseDesignIntf*>(item); BaseDesignIntf *bi = dynamic_cast<BaseDesignIntf*>(item);
if (bi) { if (bi) {
bi->disconnect(this);
bi->setParentItem(parentItem()); bi->setParentItem(parentItem());
bi->setParent(parent()); bi->setParent(parent());
bi->setVisible(true); bi->setVisible(true);