mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
When reaching 0 array size, delete the array node.
--HG-- branch : dfighter-tools
This commit is contained in:
parent
9b6ff808c5
commit
655d446151
1 changed files with 16 additions and 0 deletions
|
@ -497,6 +497,22 @@ void CGeorgesFormModel::arrayResized( const QString &name, int size )
|
||||||
item->add( CFormItem::Form, n.toUtf8().constData(), i, formName.toUtf8().constData(), 0, item->form() );
|
item->add( CFormItem::Form, n.toUtf8().constData(), i, formName.toUtf8().constData(), 0, item->form() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( celm->Elements.size() == 0 )
|
||||||
|
{
|
||||||
|
NLGEORGES::CFormElmStruct *ps = dynamic_cast< NLGEORGES::CFormElmStruct* >( celm->getParent() );
|
||||||
|
if( ps != NULL )
|
||||||
|
{
|
||||||
|
const NLGEORGES::CFormDfn *parentDfn;
|
||||||
|
const NLGEORGES::CFormDfn *nodeDfn;
|
||||||
|
uint indexDfn;
|
||||||
|
const NLGEORGES::CType *nodeType;
|
||||||
|
NLGEORGES::CFormElm *node;
|
||||||
|
NLGEORGES::CFormDfn::TEntryType type;
|
||||||
|
bool isArray;
|
||||||
|
|
||||||
|
ps->deleteNodeByName( item->name().c_str(), &parentDfn, indexDfn, &nodeDfn, &nodeType, &node, type, isArray );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue