dbertoni    01/02/01 10:32:34

  Modified:    c/src/XSLT ElemNumber.cpp
  Log:
  Fixed bug where number value was truncated, rather than rounded.
  
  Revision  Changes    Path
  1.37      +2 -1      xml-xalan/c/src/XSLT/ElemNumber.cpp
  
  Index: ElemNumber.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/ElemNumber.cpp,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- ElemNumber.cpp    2001/01/26 22:57:24     1.36
  +++ ElemNumber.cpp    2001/02/01 18:32:32     1.37
  @@ -260,6 +260,7 @@
                
                contextCopy = DOMServices::getParentOfNode(*contextCopy);
        }
  +
        return contextCopy;
   }                                    
   
  @@ -392,7 +393,7 @@
                }
                else
                {
  -                     numberList.push_back(int(theValue));
  +                     
numberList.push_back(int(DoubleSupport::round(theValue)));
                }
        }
        else
  
  
  

Reply via email to