Diff for /Amaya/amaya/templateInstantiate.c between versions 1.121 and 1.122

version 1.121, 2009/09/03 15:19:35 version 1.122, 2009/09/03 16:14:27
Line 1367  void InstantiateRepeat (XTigerTemplate t Line 1367  void InstantiateRepeat (XTigerTemplate t
   
   //We must have minOccurs children    //We must have minOccurs children
   child = TtaGetFirstChild (el);    child = TtaGetFirstChild (el);
     if (!child)
       //Error : a repeat must have at least one child which will be the model
       return;
     
   for (childrenCount = 0; child; TtaNextSibling(&child))    for (childrenCount = 0; child; TtaNextSibling(&child))
     //TODO : Check that every child is valid      //TODO : Check that every child is valid
     childrenCount ++;      childrenCount ++;
Line 1375  void InstantiateRepeat (XTigerTemplate t Line 1379  void InstantiateRepeat (XTigerTemplate t
     //Error : too many children!      //Error : too many children!
     return;        return;  
   
   
   if (parentLine)    if (parentLine)
     // display the element in line      // display the element in line
     Template_SetInline (el, minType.AttrSSchema, doc, registerUndo);      Template_SetInline (el, minType.AttrSSchema, doc, registerUndo);

Removed from v.1.121  
changed lines
  Added in v.1.122


Webmaster