Diff for /Amaya/amaya/MathMLbuilder.c between versions 1.182 and 1.183

version 1.182, 2003/01/08 17:51:25 version 1.183, 2003/02/10 11:47:47
Line 172  ThotBool     ElementNeedsPlaceholder (El Line 172  ThotBool     ElementNeedsPlaceholder (El
       elType.ElTypeNum == MathML_EL_MACTION)        elType.ElTypeNum == MathML_EL_MACTION)
      ret = TRUE;       ret = TRUE;
   else if (elType.ElTypeNum == MathML_EL_MROW)    else if (elType.ElTypeNum == MathML_EL_MROW)
     /* a mrow needs a place holder only if it's not the sole child of      /* a mrow needs a place holder only if it's not the only child of
        an element such as Numerator, Denominator, RootBase, Index, etc. */         an element such as Numerator, Denominator, RootBase, Index, etc. */
     {      {
       ret = TRUE;        ret = TRUE;
Line 181  ThotBool     ElementNeedsPlaceholder (El Line 181  ThotBool     ElementNeedsPlaceholder (El
         {          {
           sibling = el;  TtaPreviousSibling (&sibling);            sibling = el;  TtaPreviousSibling (&sibling);
           if (!sibling)            if (!sibling)
               /* the MROW element has no sibling */
             {              {
               parent = TtaGetParent (el);                parent = TtaGetParent (el);
               if (parent)                if (parent)
Line 200  ThotBool     ElementNeedsPlaceholder (El Line 201  ThotBool     ElementNeedsPlaceholder (El
                       elType.ElTypeNum == MathML_EL_MultiscriptBase ||                        elType.ElTypeNum == MathML_EL_MultiscriptBase ||
                       elType.ElTypeNum == MathML_EL_MSubscript ||                        elType.ElTypeNum == MathML_EL_MSubscript ||
                       elType.ElTypeNum == MathML_EL_MSuperscript)                        elType.ElTypeNum == MathML_EL_MSuperscript)
                     ret = FALSE;                      {
                         /* no place holder required, except if the MROW element
                            actually represent a prenthesized block */
                         ret = FALSE;
                         child = TtaGetFirstChild (el);
                         if (child != NULL)
                           {
                             elType = TtaGetElementType (child);
                             if (elType.ElTypeNum == MathML_EL_MF)
                               /* the first child of the MROW element is a MF */
                               /* The MROW element needs a placeholder */
                               ret = TRUE;
                           }
                       } 
                 }                  }
             }              }
         }          }

Removed from v.1.182  
changed lines
  Added in v.1.183


Webmaster