mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 00:33:02 +03:00
Fix removing layout in layout when removing item
This commit is contained in:
parent
ee07abb6c5
commit
02ee5864a3
@ -293,7 +293,7 @@ BaseDesignIntf *AbstractLayout::findPrior(BaseDesignIntf *item)
|
|||||||
void AbstractLayout::slotOnChildDestroy(QObject* child)
|
void AbstractLayout::slotOnChildDestroy(QObject* child)
|
||||||
{
|
{
|
||||||
m_children.removeAll(static_cast<BaseDesignIntf*>(child));
|
m_children.removeAll(static_cast<BaseDesignIntf*>(child));
|
||||||
if (m_children.count()<2){
|
if (m_children.count() < 2 && !static_cast<LayoutDesignIntf*>(child)){
|
||||||
beforeDelete();
|
beforeDelete();
|
||||||
} else {
|
} else {
|
||||||
relocateChildren();
|
relocateChildren();
|
||||||
|
Loading…
Reference in New Issue
Block a user