Diff for /Amaya/amaya/templateInstantiate.c between versions 1.125 and 1.126

version 1.125, 2009/10/22 10:40:45 version 1.126, 2009/10/22 10:55:10
Line 410  Element ParseTemplate (XTigerTemplate t, Line 410  Element ParseTemplate (XTigerTemplate t,
   AttributeType attType;    AttributeType attType;
   Attribute     att;    Attribute     att;
   Element       next, child = NULL, savedInline, prev, parent = NULL;    Element       next, child = NULL, savedInline, prev, parent = NULL;
   ElementType   elType, otherType;    ElementType   elType, otherType, parentType;
   Declaration   dec;    Declaration   dec;
   char         *name, *types;    char         *name, *types;
   
Line 543  Element ParseTemplate (XTigerTemplate t, Line 543  Element ParseTemplate (XTigerTemplate t,
                     }                      }
                   else                    else
                     {                      {
                       // therse is already a contents        if (IsTemplateInstanceDocument (doc))
           {
             // give a riority to the repeat button
             parent = TtaGetParent (el);
             parentType = TtaGetElementType (parent);
             if (elType.ElTypeNum == Template_EL_useEl &&
                 parentType.ElSSchema == elType.ElSSchema &&
                 parentType.ElTypeNum == Template_EL_repeat)
               TtaChangeTypeOfElement (el, doc, Template_EL_useSimple);
           }
                         // there is already a contents
                       attType.AttrTypeNum = Template_ATTR_currentType;                        attType.AttrTypeNum = Template_ATTR_currentType;
                       att = TtaGetAttribute (el, attType);                        att = TtaGetAttribute (el, attType);
                       if (att == NULL)                        if (att == NULL)

Removed from v.1.125  
changed lines
  Added in v.1.126


Webmaster