mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-30 15:45:58 +00:00
Fixed: #992 Infinite loop and crash when a parent sheet is the same file as self
This commit is contained in:
parent
34b0a004c4
commit
7599b1d5f8
1 changed files with 6 additions and 0 deletions
|
@ -1382,6 +1382,12 @@ exit:;
|
||||||
CForm *parentPtr = form->getParent (parent);
|
CForm *parentPtr = form->getParent (parent);
|
||||||
nlassert (parentPtr);
|
nlassert (parentPtr);
|
||||||
|
|
||||||
|
if (parentPtr->getFilename() == form->getFilename())
|
||||||
|
{
|
||||||
|
nlerror("parent is identical to current sheet %s!", form->getFilename().c_str());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Get the node by name in the parent
|
// Get the node by name in the parent
|
||||||
const CFormDfn *parentDfnParent = NULL;
|
const CFormDfn *parentDfnParent = NULL;
|
||||||
uint indexDfnParent = 0xffffffff;
|
uint indexDfnParent = 0xffffffff;
|
||||||
|
|
Loading…
Reference in a new issue