// as argument
if (myArray) {
const QObjectList* aChList = myArray->children();
- QObjectListIt aItChList(*aChList);
- SUPERVGUI_CanvasNode* anObjNode;
- while ((anObjNode = (SUPERVGUI_CanvasNode*)aItChList.current()) != 0) {
- ++aItChList;
- if ((QString(anObjNode->getEngine()->Name())).compare(QString(theNode->Name())) == 0) {
- myArray->removeChild(anObjNode);
- delete anObjNode;
+ if ( aChList ) { // asv 27.01.05 : fix for 7817
+ QObjectListIt aItChList(*aChList);
+ SUPERVGUI_CanvasNode* anObjNode;
+ while ((anObjNode = (SUPERVGUI_CanvasNode*)aItChList.current()) != 0) {
+ ++aItChList;
+ if ((QString(anObjNode->getEngine()->Name())).compare(QString(theNode->Name())) == 0) {
+ myArray->removeChild(anObjNode);
+ delete anObjNode;
+ }
}
- }
+ } // end of if ( ChList )
}
}